@extends('admin.admin_dashboard') @section('admin')
<<<<<<< HEAD @if (Auth::user()->can('children_all.view'))
@foreach ($children as $key => $detail) @endforeach
# Child Number Name Status Photo Action
{{ $key + 1 }} {{ $detail->child_number }} {{ ucfirst($detail->child_fname) . ' ' . ucfirst($detail->child_lname) }} @php $statusColors = [ 'Sponsored' => 'success', 'Registration Cancelled' => 'secondary', 'Graduated' => 'warning', 'Deceased' => 'danger', 'Non Sponsored' => 'primary', ]; $status = optional($detail->child_status)->status_name ?? 'N/A'; $badgeColor = $statusColors[$status] ?? 'dark'; // Default color @endphp {{ $status }} Child Photo
@endif @if (Auth::user()->can('children_ger.view'))
@foreach ($children_ger as $key => $detail) @endforeach
# Child Number Name Status Photo Action
{{ $key + 1 }} {{ $detail->child_number }} {{ ucfirst($detail->child_fname) . ' ' . ucfirst($detail->child_lname) }} @php $statusColors = [ 'Sponsored' => 'success', 'Registration Cancelled' => 'secondary', 'Graduated' => 'warning', 'Deceased' => 'danger', 'Non Sponsored' => 'primary', ]; $status = optional($detail->child_status)->status_name ?? 'N/A'; $badgeColor = $statusColors[$status] ?? 'dark'; // Default color @endphp {{ $status }} Child Photo
@endif @if (Auth::user()->can('children_us.view'))
@foreach ($children_us as $key => $detail) @endforeach
# Child Number Name Status Photo Action
{{ $key + 1 }} {{ $detail->child_number }} {{ ucfirst($detail->child_fname) . ' ' . ucfirst($detail->child_lname) }} @php $statusColors = [ 'Sponsored' => 'success', 'Registration Cancelled' => 'secondary', 'Graduated' => 'warning', 'Deceased' => 'danger', 'Non Sponsored' => 'primary', ]; $status = optional($detail->child_status)->status_name ?? 'N/A'; $badgeColor = $statusColors[$status] ?? 'dark'; // Default color @endphp {{ $status }} Child Photo
@endif @if (Auth::user()->can('children_ug.view'))
@foreach ($children_ug as $key => $detail) @endforeach
# Child Number Name Status Photo Action
{{ $key + 1 }} {{ $detail->child_number }} {{ ucfirst($detail->child_fname) . ' ' . ucfirst($detail->child_lname) }} @php $statusColors = [ 'Sponsored' => 'success', 'Registration Cancelled' => 'secondary', 'Graduated' => 'warning', 'Deceased' => 'danger', 'Non Sponsored' => 'primary', ]; $status = optional($detail->child_status)->status_name ?? 'N/A'; $badgeColor = $statusColors[$status] ?? 'dark'; // Default color @endphp {{ $status }} Child Photo
@endif
======= Home All Children @if (Auth::user()->can('child.add')) Add Child @endif @if (Auth::user()->can('children_all.view')) All Regions @include('admin.cfdp.children.partials.children-table', [ 'children' => $children, 'tableId' => 'children-all', 'title' => 'All Regions', ]) @endif @if (Auth::user()->can('children_ger.view')) Germany @include('admin.cfdp.children.partials.children-table', [ 'children' => $children_ger, 'tableId' => 'children-ger', 'title' => 'Germany', ]) @endif @if (Auth::user()->can('children_us.view')) United States @include('admin.cfdp.children.partials.children-table', [ 'children' => $children_us, 'tableId' => 'children-us', 'title' => 'United States', ]) @endif @if (Auth::user()->can('children_ug.view')) Uganda @include('admin.cfdp.children.partials.children-table', [ 'children' => $children_ug, 'tableId' => 'children-ug', 'title' => 'Uganda', ]) @endif @push('vendor-scripts') @include('partials.admin.datatable-export-assets') @endpush >>>>>>> origin/main @endsection