| {{ $application->id ?? '' }} |
{{ $application->IP_Address ?? '' }} |
{{-- {{ ucfirst($application->language) }} |
{{ $application->language_other_options ?? '' }} | --}}
{{-- {{ $application->recipient_gift_status ?? '' }} | --}}
{{ $application->address ?? '' }} |
{{ $application->zip ?? '' }} |
{{ $application->unit_no ?? '' }} |
{{-- {{ $application->gate_code ?? '' }} | --}}
{{ $application->first_name ?? '' }} |
{{ $application->last_name ?? '' }} |
{{ $application->contact_no ?? '' }} |
{{ $application->email ?? '' }} |
{{-- as per client requirement picked up should no by default --}}
No |
{{-- {{$application->package_pickup_status == 'pickup' ? 'Yes' : 'No'}} | --}}
{{ $application->adminDetails?->name ?? '' }} |
{{ $application->issued_date_time ?? '' }} |
{{ $application->alternate_person_first_name ?? '' }} {{ $application->alternate_person_last_name ?? '' }} |
{{ $application->pickup_date ?? '' }} |
{{ $application->pickup_time_begin ?? '' }} |
{{ $application->pickup_time_end ?? '' }} |
{{ $application->pickup_location ?? '' }} |
{{-- {{ $application->delivery_date ?? '' }} | --}}
{{ $application->created_at ?? '' }} |
{{ $application->member_of_household ?? '' }} |
{{ $application->browser_name ?? '' }} |
@php
$childs = \App\Models\ChildDetail::where('application_form_id',$application->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
@else