@if (auth()->user()->user_type == 'emp') @php $roleId = auth()->user()->role_id; $routeNames = empPermissions($roleId); @endphp @endif
@if (isset($result) && count($result) > 0) @php // dumper($result); $i = pageIndex($result); @endphp @foreach ($result as $key => $row) @endforeach @else @endif
{{ __('common.sr_no') }} {!! sorting('name', __('common.name'), $sortOrder, $sortEntity) !!} {!! sorting('customer_code', __('common.customer_code'), $sortOrder, $sortEntity) !!} {!! sorting('client_type', __('common.client_type'), $sortOrder, $sortEntity) !!} {!! sorting('china_code', __('common.china_code'), $sortOrder, $sortEntity) !!} {!! sorting('client_code', __('common.client_code'), $sortOrder, $sortEntity) !!} {!! sorting('weight_kg', __('common.weight_kg'), $sortOrder, $sortEntity) !!} {!! sorting('client_price', __('common.client_price'), $sortOrder, $sortEntity) !!} {!! sorting('created_at', __('common.received_on'), $sortOrder, $sortEntity) !!} {!! sorting('delivered_at', __('common.delivered_at'), $sortOrder, $sortEntity) !!} {!! sorting('good_types', __('common.status'), $sortOrder, $sortEntity) !!} {!! __('common.action') !!}
{!! $i++ !!} {!! $row->name !!} {!! $row->customer_code !!} {!! $row->client_type !!} {!! $row->china_code !!} {!! $row->client_code !!} {!! $row->weight_kg !!} {!! '$' . $row->client_price !!} {{ dateFormat($row->created_at, DISPLAY_DATETIME) }} {{ dateFormat($row->delivered_at, DISPLAY_DATETIME) }} @if ($row->good_types === 'received') {{ __('common.undelivered') }} @else {{ __('common.delivered') }} @endif
{!! $result->links('pagination::bootstrap-4') !!}
{!! pageDetail($result) !!}
{!! __('common.no_records') !!}