@extends('layout') @section('content')
@if(in_array(\Auth::user()->role,[1,2,5,20,21]))
* Showing data within 1 months by default
@if(in_array(\Auth::user()->role,[1,2,5])) @endif
{{-- Filter --}} View All

@endif {{-- @if (app('request')->input('s') != null || app('request')->input('j') != null) @else @endif --}} {{-- @if(!$deliveries->isEmpty()) @php($i = 1) @foreach($deliveries as $delivery) @php($i++) @endforeach @else @endif --}}
No No. Surat Jalan Info Invoice Info Customer Tanggal Dibuat Status Kirim Jenis Pengiriman Action
{{ $i }} {{ $delivery->no_surat_jalan }} @foreach ($delivery->delivery_detail as $detail) @if ($delivery->delivery_detail->count() > 1) {{ @$detail->invoice->no_invoice?@$detail->invoice->no_invoice:'Missing Invoice, cek DB' }} @if (!$loop->last),@endif @else {{ @$detail->invoice->no_invoice?@$detail->invoice->no_invoice:'Missing Invoice, cek DB' }} @endif @endforeach {{ ucwords(@$delivery->user->nama) }} {{ date('d/m/Y H:i', strtotime($delivery->created_at)) }} @if ($delivery->status_kirim == 1) @elseif ($delivery->status_kirim == 2) @else @endif {{ config('custom.status_kirim.'.$delivery->status_kirim) }} // {{$i%2 == 0 ? 'Active' : 'Pending'}} {{ config('custom.jenis_pengiriman.'.$delivery->jenis_pengiriman) }} @if(\Auth::user()->role==1 || (\Auth::user()->role==10 && $delivery->status<4) || (\Auth::user()->role==5 && $delivery->status<4)) // @endif
Data Kosong
@endsection @section('js') @endsection