@extends('admin.layout.layout') @section('content')

Program Exercise

@foreach ($program_exercises as $program_exercise) @php $bmi_ranges = []; foreach ($program_exercise->bmi_range_exercises as $bmi_range_exercise) { $bmi_ranges[] = $bmi_range_exercise->bmi_range->bmi_from . ' - ' . $bmi_range_exercise->bmi_range->bmi_to; } $comma_separated_bmi = implode(', ', $bmi_ranges); @endphp @endforeach
S.NO Fitness Category BMI Day Gender Exercise Type Exercise Name Focus Points Text Sets Reps Rest Action
{{ $loop->iteration }} {{ $program_exercise->fitnessCategory->name }} {{ $comma_separated_bmi }} {{ $program_exercise->day }} {{ $program_exercise->gender }} {{ $program_exercise->exercise_type }} {{ $program_exercise->exercise_name }} {{ $program_exercise->focus_points_text }} {{ $program_exercise->sets }} {{ $program_exercise->reps }} {{ $program_exercise->rest }} sec
{{-- Data Table Code --}} {{-- Opening modal if any error exists --}} @if ($errors->any()) @endif @endsection