Plans

{{-- Tabs --}}
{{-- Workout Plans tab --}}
@if($workoutPlans->isEmpty())

No workout plans yet.

@else
@foreach($workoutPlans as $plan) @php $levelColor = match($plan->difficulty_level ?? '') { 'beginner' => 'bg-green-100 text-green-700', 'intermediate' => 'bg-yellow-100 text-yellow-700', 'advanced' => 'bg-red-100 text-red-700', default => 'bg-gray-100 text-gray-500', }; @endphp

{{ $plan->name }}

@if($plan->difficulty_level) {{ $plan->difficulty_level }} @endif
@if($plan->description)

{{ $plan->description }}

@endif
@if($plan->duration_weeks) {{ $plan->duration_weeks }}w @endif @if($plan->goal) {{ $plan->goal }} @endif {{ $plan->assignments_count ?? 0 }} members
View
@csrf @method('DELETE')
@endforeach
{{ $workoutPlans->withQueryString()->appends(['tab' => 'workout'])->links() }}
@endif
{{-- Diet Plans tab --}}
@if($dietPlans->isEmpty())

No diet plans yet.

@else
@foreach($dietPlans as $plan)

{{ $plan->name }}

@if($plan->goal)

{{ $plan->goal }}

@endif
@if($plan->daily_calories) {{ $plan->daily_calories }} kcal @endif {{ $plan->assignments_count ?? 0 }} members
View
@csrf @method('DELETE')
@endforeach
{{ $dietPlans->withQueryString()->appends(['tab' => 'diet'])->links() }}
@endif
{{-- Add Workout Plan modal --}} {{-- Add Diet Plan modal --}}