@extends('layouts.user_type.auth') @section('content')
@if($errors->any()) @endif @if(session('success')) @endif
All Shipments
@if (auth()->user()->role_id == 1) @endif @if (auth()->user()->role_id == 1 || auth()->user()->role_id == 3 || auth()->user()->role_id == 4) @endif @if($shipmentdata->isEmpty()) @else @foreach ($shipmentdata as $shipment) @if (auth()->user()->role_id == 1) @endif @if (auth()->user()->role_id == 1 || auth()->user()->role_id == 3 || auth()->user()->role_id == 4) @endif @endforeach @endif
ID Order ID Tracking Number Branches Vendor Customer Sender Address Receiver Address Payment Type Quantity Weight Delivery Till Status Action

No Shipments found.

{{ $shipment->id }}

#{{ $shipment->order_id }}

#{{ $shipment->tracking_number }}

{{ $shipment->branch->name ?? 'No Branch Found' }}

{{ $shipment->vendor->name }}

{{ $shipment->customer->name }}

{{ $shipment->vendorAddress->full_address ?? "No address found" }}

{{ $shipment->customerAddress->full_address ?? "No address found" }}

{{ $shipment->payment_type }}

{{ $shipment->quantity }}

{{ $shipment->weight }}

{{ $shipment->delivery_till }}

@if (auth()->user()->role_id == 1 || auth()->user()->role_id == 4) @else

{{ $shipment->status }}

@endif
@csrf @method('DELETE')
@endsection