<<<<<<< HEAD
@if (Auth::user()->can('child.add'))
Add Child
@endif
@if (Auth::user()->can('children_all.view'))
| # |
Child Number |
Name |
Status |
Photo |
Action |
@foreach ($children as $key => $detail)
| {{ $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 }}
|
|
|
@endforeach
@endif
@if (Auth::user()->can('children_ger.view'))
| # |
Child Number |
Name |
Status |
Photo |
Action |
@foreach ($children_ger as $key => $detail)
| {{ $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 }}
|
|
|
@endforeach
@endif
@if (Auth::user()->can('children_us.view'))
| # |
Child Number |
Name |
Status |
Photo |
Action |
@foreach ($children_us as $key => $detail)
| {{ $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 }}
|
|
|
@endforeach
@endif
@if (Auth::user()->can('children_ug.view'))
| # |
Child Number |
Name |
Status |
Photo |
Action |
@foreach ($children_ug as $key => $detail)
| {{ $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 }}
|
|
|
@endforeach
@endif
=======