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

@lang('data.ourOrders')

@lang('data.requestAsPerSpecification')

@lang('data.requestAName')

@lang('data.requestAKnownService')

@if(\Auth::check())

@lang('data.latestOrders')

@lang('data.showAll')
@foreach($orders as $order) @if($loop->iteration == 5) break; @endif @endforeach
@lang('data.order_no') @lang('data.name') @lang('data.status') @lang('data.orderType')
{{$order->code}} {{$order->client_name}} {{order_status($order->status)}} {{order_type($order->type)}}

@lang('data.tasksAndComplaints')

@lang('data.showAll')
{{-- إضافة مهمة--}}
@if(\App\Models\Complaint::whereHas('order',function ($order){ $order->where('office_id',\Auth::id()); })->count() > 0) @foreach($complaints as $complaint) @endforeach
@lang('data.complaint_no') @lang('data.complainant') @lang('data.complaint_status') @lang('data.complaintNotes')
{{$complaint->code}} {{$complaint->client->name}} {{getComplaintStatus($complaint->status)}} {{$complaint->notes}}
@else

{{Lang::get('data.noComplaints')}}

@endif
  • {{foreignComplaintCount('new')}} @lang('data.new')
  • {{foreignComplaintCount('contacted')}} @lang('data.contacted')
  • {{foreignComplaintCount('closed')}} @lang('data.closed')

@lang('data.latestAlerts')

@lang('data.showAll')
@if(\App\Models\Alert::count() > 0) @foreach($alerts as $alert) {{--

@lang('data.thereAreNoAlerts')

--}} @endforeach
@lang('data.alert_no') @lang('data.name') @lang('data.alert_status') @lang('data.alertNotes')
{{$alert->id}} {{$alert->user->name}} {{$alert->status == 'new' ? Lang::get('data.new') : Lang::get('data.closed')}} {{$alert->notes}}
@else {{--

@lang('data.thereAreNoAlerts')

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