@push('styles') @endpush
@if (session()->has('message')) @php $message = json_decode(session()->get('message')); @endphp @endif
{{-- --}} @forelse($shippings as $shipping) @php if(($shipping->shipable_type == "App\Models\Purchase") && ($shipping->shipable)){ $invoiceType = "Purchase"; $invoice = $shipping->shipable->purchase_invoice; } else if(($shipping->shipable_type == "App\Models\Sale") && ($shipping->shipable)){ $invoiceType = "Sale"; $invoice = $shipping->shipable->sale_invoice; } if($shipping->shipping_type){ $shipping->client = $shipping->shipping_type; $invoiceType = "RMA";} @endphp {{-- --}} {{-- --}} @empty @endforelse
# Date Invoice Type Supplier/Client Logistics Company Tracking No # Logistics Fee Status Action
{{$shipping->id}} {{date('d-m-Y', strtotime($shipping->shipping_date))}} ($invoiceType == "Purchase"), "badge-info" => ($invoiceType == "Sale"), "badge-danger" => ($invoiceType == "RMA"), ])>{{ $invoiceType }} {{$shipping->client}} {{$shipping->logistic_company}} {{$shipping->tracking_no}} {{$shipping->logistic_fee}} $shipping->shipable->id]) : route('sales', ['sale' => $shipping->shipable->id]) }}">#{{ $invoice }} @if(!$shipping->shipping_type) @endif @foreach(['Shipped', 'Delayed','Delivered'] as $st) @endforeach
No Data!