@include('site.foreign.controllers.upper-header') @include('site.foreign.controllers.header')

@lang('data.order_details')

@lang('data.order_no')

{{$row->code}}

@lang('data.orderType')

{{order_type($row->type)}}

@lang('data.orderDate')

{{\Carbon\Carbon::parse($row->created_at)->toDateString()}}

@lang('data.visaNumber')

{{$row->visa_number}}

@lang('data.applicantData')

@lang('data.fileNumber')

{{$row->client->file_number}}

@lang('data.ClientArabicName')

{{$row->client->name}}

@lang('data.ClientEnglishName')

{{$row->client->client_name_english}}

@lang('data.civilRegistry')

{{$row->civil_registry}}

@lang('data.mobile')

{{$row->client_mobile}}

@if($row->another_mobile)
@lang('data.anotherMobile')

{{$row->another_mobile}}

@endif
@lang('data.email')

{{$row->client_email}}

@lang('data.familyCount')

{{$row->family_count}}

@lang('data.address')

{{$row->client->my_city ? $row->client->my_city->title['ar'] : ""}}

@lang('data.socialStatus')

{{$row->client->social_status}}

تاريخ الميلاد

{{$row->client->client_birthday}}

@lang('data.financialInformation')

@lang('data.amountOwedToTheForeignOffice')

{{$row->foreign_money}}

@lang('data.TheAmount')

{{$row->foreign_money_wallet ? $row->foreign_money_wallet : 0}}

@lang('data.workerInfo')

@if($row->cv)
{{$row->cv->name}}
@lang('data.job') :{{$row->cv->job_title->name[App::getLocale()]}} @lang('data.age') : {{$row->cv->age}} @lang('data.nationality') : {{$row->cv->nationality->name[App::getLocale()]}}
@else
@lang('data.worker_name')

{{ $row->order_worker ? $row->order_worker->name : "Worker Deleted "}}

@lang('data.mobile')

{{$row->order_worker ? $row->order_worker->mobile : "worker deleted"}}

@lang('anotherMobileNumber')

{{$row->order_worker ? $row->order_worker->another_mobile : 'worker deleted'}}

@lang('address')

{{$row->order_worker ? $row->order_worker->address : 'worker deleted'}}

@lang('passportNumber')

{{$row->order_worker ? $row->order_worker->passport_number : 'worker deleted'}}

@lang('passportStart')

{{$row->order_worker ? $row->order_worker->passport_start : 'worker deleted'}}

@lang('passportEnd')

{{$row->order_worker ? $row->order_worker->passport_end : 'worker deleted'}}

@lang('type')

@if($row->order_worker) {{$row->order_worker->gender == 'male' ? Lang::get('man') : Lang::get('female')}} @else worker deleted @endif

@lang('nameFamilyMember')

{{$row->order_worker ? $row->order_worker->name_family_member : 'worker deleted'}}

@lang('mobileFamilyMember')

{{$row->order_worker ? $row->order_worker->mobile_family_member : 'worker deleted'}}

@lang('addressFamilyMember')

{{$row->order_worker ? $row->order_worker->address_family_member : 'worker deleted'}}

@lang('city')

{{$row->order_worker ? $row->order_worker->city->title['ar'] : 'worker deleted'}}

@lang('job')

{{$row->order_worker ? $row->order_worker->job_title->name['ar'] : 'worker deleted'}}

@lang('image')
@lang('passport_attachment')
@endif
@if($row->status == 'in_progress' || $row->status == 'travel' || $row->status == 'delivered')

@lang('data.subActions')

@lang('data.addAction')
@foreach($row->processes()->latest()->get() as $process) @endforeach
@lang('data.processes') @lang('data.startDate') @lang('data.endDate') @lang('data.status')
{{$process->process}} {{$process->start_date}} {{$process->end_date}} {{App::getLocale() == 'ar' ? process_order_status($process->status) : $process->status}}
@endif

@lang('data.updateRequests')

@foreach($updates as $update) @endforeach
@lang('data.updateDate') @lang('data.foreignMessage') @lang('data.officeMessage') @lang('data.sendReply')
{{\Carbon\Carbon::parse($update->created)->toDateString()}} {{$update->message && isset($update->message['en']) ? $update->message['en'] : trans('data.noMessageYet')}} {{$update->message && isset($update->message['ar']) ? $update->message['ar'] : trans('data.noMessageYet')}}
@if($row->status == 'in_progress' || $row->status == 'travel')
@lang('data.changeFlight')
@lang('data.flightNumber') @lang('data.flightCompany') @lang('data.flightDate') @lang('data.flightComingDate') @lang('data.Time') @lang('data.arrivalAirPort')
{{$row->travel ? $row->travel->number_flight : trans('data.noMessageYet')}} {{$row->travel ? $row->travel->flight_company : trans('data.noMessageYet')}} {{$row->travel ? $row->travel->date_flight : trans('data.noMessageYet')}} {{$row->travel ? $row->travel->date_arrive_flight : trans('data.noMessageYet')}} {{$row->travel ? \Carbon\Carbon::parse($row->travel->flight_time)->format('g:i A') : trans('data.noMessageYet')}} {{$row->travel ? $row->travel->destination : trans('data.noMessageYet')}}
@endif @if($row->status == 'paid')
@lang('data.refuseOrder')
@elseif($row->status == 'cancel')
@lang('data.orderRefused')
@else
@lang('data.cancelOrder')
@endif @if($row->status == 'cancel' && $row->admin_approve_cancel == 'true')
خطاب الإلغاء
@endif
{{--
--}} {{--
--}} {{--

الصور

--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--

صورة جواز سفر مقدم الطلب

--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--

صورة كارت عائلة مقدم الطلب

--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--

صورة امضاء مقدم الطلب

--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} @include('site.foreign.controllers.footer')