{{-- --}} @for($i = 1; $i <11; $i++) @endfor @if(!empty($list)) @foreach($list as $key => $user) {{-- --}} @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 @endforeach @endif @endforeach @endif
Application Number IP Address Address Zipcode Unit No First Name Last Name Cell Phone Email Picked Up Issued By Date/Time Stamp Alternate Pickup Person Pickup Date Pickup Time (Begin) Pickup Time (End) Pickup LocationTotal_HouseholdApplication Submitted No of Children Browser {{ 'Children ' . $i . ' Info' }}
{{$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}} {{ $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') --}}