@extends('admin.includes.layout') @section('title', $page_title) @section('content')

{{ $page_title }}

List
@csrf
@if(!empty($coaching?->image)) Image @else @endif
@if(!empty($coaching?->image_two)) Image @else @endif

{{-- If editing & overview exists --}} @if(!empty($coaching->overview) && is_array($coaching->overview)) @foreach($coaching->overview as $index => $overview)
{{-- Add button only on first row --}} @if($index == 0) @endif {{-- Remove only if more than 1 --}} @if(count($coaching->overview) > 1) @endif
@endforeach @else {{-- Default first row --}}
@endif

{{-- If edit & about_program exists --}} @if(!empty($coaching->about_program) && is_array($coaching->about_program)) @foreach($coaching->about_program as $index => $about)
{{-- Show Add only on first row --}} @if($index == 0) @endif {{-- Show Remove only if more than 1 row --}} @if(count($coaching->about_program) > 1) @endif
@endforeach @else
@endif

{{-- If edit & faqs exists --}} @if(!empty($coaching->faqs) && is_array($coaching->faqs)) @foreach($coaching->faqs as $index => $faq)
{{-- Show Add only on first row --}} @if($index == 0) @endif {{-- Show Remove only if more than 1 row --}} @if(count($coaching->faqs) > 1) @endif
@endforeach @else
@endif
@endsection @push('scripts') @endpush