| {{$user->id}} |
{{$user->IP_Address}} |
{{$user->address}} |
{{$user->zip}} |
{{$user->unit_no}} |
{{$user->first_name}} |
{{$user->last_name}} |
{{$user->contact_no}} |
{{$user->email}} |
No |
{{$user->adminDetails?->name}} |
{{$user->issued_date_time}} |
{{$user->alternate_person_first_name }} {{$user->alternate_person_last_name }} |
{{-- {{$user->no_of_people_lived}} | --}}
{{$user->pickup_date}} |
{{$user->pickup_time_begin}} |
{{$user->pickup_time_end}} |
{{$user->pickup_location}} |
{{$user->created_at}} |
{{$user->member_of_household}} |
{{$user->browser_name}} |
@php
$childs = \App\Models\ChildDetail::where('application_form_id',$user->id)->get();
@endphp
@if($childs)
@foreach($childs as $child)
@php
//$dob1 = Carbon\Carbon::createFromFormat('m-d-Y', $child->dob);
//$dob = $dob1->format('Y-m-d') ;
// Calculate the age using years, months, and days
//$formatted_dt1 = \Carbon\Carbon::parse($child->dob);
//$formatted_dt2 = \Carbon\Carbon::parse($delivery_date);
//$age = $formatted_dt1->diff($formatted_dt2);
@endphp
{{ $child->first_name . ' ' . $child->last_name }} {{ ',' }}
{{-- {{ $child->dob }} {{ ',' }} --}}
{{ ($child->toy_type == 'boy_toys') ? 'Boy' : 'Girl' }} {{ ',' }}
{{ \App\Helpers\AgeGroupHelper::mapAgeGroup($child->age_group) }}
{{-- \Carbon\Carbon::parse($formatted_dt1)->diff($formatted_dt2)->format('%y years, %m months and %d days') --}}
|
@endforeach
@endif
@endforeach
@endif