{{-- table loader --}}
{{ __('admin.loading') }}
{{-- table loader --}} @php use Carbon\Carbon; @endphp {{-- table content --}} @if ($orders->first()?->status == 'completed') @endif @foreach ($orders as $order) @if ($order->is_admin_accepted != 1 && $order->status == 'completed') @endif @if ($order->is_admin_accepted == 1 && $order->status == 'completed') @endif @endforeach
{{ __('admin.company') }} {{ __('admin.technician') }} {{ __('admin.status') }} {{ __('admin.pallete') }} {{ __('admin.total') }} {{ __('admin.finished_at') }} {{ __('admin.control') }}{{ __('admin.is_admin_accepted') }}
{{ $order->company->name }} {{ $order->technician->name }} {{ __('order.status_' . $order->status) }} {{ $order->car->plate_number }} {{ $order->total }} {{ Carbon::parse($order->finished_at)->format('Y-m-d') ?? '----' }} {{-- --}} {{ __('admin.' . ($order->is_admin_accepted == 0 ? 'rejected' : 'accepted')) }}
{{-- table content --}} {{-- no data found div --}} @if ($orders->count() == 0)
{{ __('admin.there_are_no_matches_matching') }}
@endif {{-- no data found div --}}
{{-- pagination links div --}} @if ($orders->count() > 0 && $orders instanceof \Illuminate\Pagination\AbstractPaginator)
{{ $orders->links() }}
@endif {{-- pagination links div --}}