@foreach($patients as $patient) {{-- --}} @if(!empty($patient['contract']['title'])) @else @endif s @endforeach
Code First Name Middle Name Last Name Multiple Birth Gender DOB Age Nationality Contact Number Email Unit No./Street Barangay City/Municipality Province Region Country Zip Code Mother Name Guardian Name Contract Start of Contract End of Contract
{{ $patient['code'] }} {{ $patient['name'] }} {{ $patient['middle_name'] }} {{ $patient['last_name'] }} {{ $patient['birth_count'] }} {{ $patient['gender'] }} {{ date('Y-m-d',strtotime($patient['dob'])) }} {{ $patient['age'] }} {{ ucfirst($patient['nationality']) }} @if(isset($patient['phones'])){ @foreach($patient['phones'] as $phone) @if($loop->last){{$phone->phone}} @else {{$phone->phone}}, @endif @endforeach } @endif {{ $patient['email'] }}{{ $patient['street'] }} {{ $patient['barangay'] }} {{ $patient['city'] }} {{ $patient['province'] }} {{ isset($patient->region_name->name)?$patient->region_name->name: '' }} {{ $patient['zip_code'] }} {{ $patient['street'] }} {{ $patient['barangay'] }} {{ $patient['city'] }} {{ $patient['province'] }} {{ isset($patient->region_name->name)?$patient->region_name->name: '' }} {{ isset($patient['country'])?$patient['country']:'' }} {{ $patient['zip_code'] }} {{ $patient['mother_name'] }} {{ $patient['guardian_name'] }}{{ $patient['contract']['title'] }} {{ $patient['start_contract'] }} {{ $patient['end_contract'] }}