@if(!empty($filed)) @foreach($filed as $key => $each_field) @endforeach @endif @for($i = 1; $i <11; $i++) @endfor @if(!empty($applications) && count($applications) > 0) @foreach($applications as $key => $application) {{-- --}} {{-- --}} {{-- --}} {{-- as per client requirement picked up should no by default --}} {{-- --}} {{-- --}} @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 @endforeach @endif @endforeach @else @endif
{{ $each_field }} {{ 'Children ' . $i . ' Info' }}
{{ $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 ?? '' }} 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 ?? '' }} {{ $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') --}}
No record found with custom serach criteria