@push('styles') @endpush
@if (session()->has('message')) @php $message = json_decode(session()->get('message')); @endphp @endif
{{-- @dd($show) --}} @if ($show != 'rma') @endif {{-- --}} {{-- --}} @forelse($shippings as $shipping) @php if ($shipping->shipable_type == 'App\Models\Purchase' && $shipping->shipable) { $invoiceType = 'Purchase'; $invoice = $shipping->shipable->purchase_invoice; } elseif ($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 {{-- --}} @if ($show != 'rma') @endif {{-- --}} {{-- --}} @if (auth()->user()->role->name == 'staff') @else @endif {{-- --}} @empty @endforelse
Date Invoice Type Supplier/ClientInvoice #Logistics Company Tracking No # Logistics FeeStatus Action
{{$shipping->id}}{{ date('d-m-Y', strtotime($shipping->shipping_date)) }} $invoiceType == 'Purchase', 'badge-info' => $invoiceType == 'Sale', 'badge-danger' => $invoiceType == 'RMA', ])>{{ $invoiceType }} {{ $shipping->client }} @if ($invoiceType == 'Purchase') {{ $shipping->shipable->purchase_invoice }} @elseif($invoiceType == 'Sale') {{ $shipping->shipable->sale_invoice }} @endif {{ $shipping->logistic_company }} {{ $shipping->tracking_no }}{{$shipping->logistic_invoice}}{{$shipping->logistic_fee}} @if (auth()->user()->is_edit == 1) @if (!$shipping->shipping_type) @endif @foreach (['Shipped', 'Delayed', 'Delivered'] as $st) @endforeach @else @endif @if (!$shipping->shipping_type) @endif @foreach (['Shipped', 'Delayed', 'Delivered'] as $st) @endforeach
No Data!
Showing {{ $shippings->firstItem() }} to {{ $shippings->lastItem() }} of {{ $shippings->total() }} results
{{ $shippings->links() }}

@if ($show != 'rma') @else @endif
@push('scripts') @endpush