@php switch ($pick_up->status) { case '0': $buttonClass = 'danger'; $buttonText = 'Pending'; break; case '1': $buttonClass = 'warning'; $buttonText = 'Alloted'; break; case '2': $buttonClass = 'info'; $buttonText = 'Load'; break; case '3': $buttonClass = 'success'; $buttonText = 'Unload'; break; default: $buttonClass = 'secondary'; $buttonText = 'Unknown Status'; break; } @endphp @extends('admin.layouts.layouts') @section('title', 'Details | Pick Up') @section('page-css') @endsection @section('content') {{-- Unload pickup modal --}} {{-- Image view modal --}}
Pick Up Code:
{{ $pick_up->pick_up_code ?? '' }}
Farmer Name:
{{ $pick_up->farmer->farmer_name ?? '-' }}
Farm Name:
{{ $pick_up->farm->farm_name ?? '-' }}
Product Name:
{{ $pick_up->product->name ?? '-' }}
Location:
{{ ($pick_up->farm->address ?? '') . ', ' . ($pick_up->farm->address_2 ?? '') . ', ' . ($pick_up->farm->pincode ?? '') }}
No Of Bags:
{{ $pick_up->no_of_bags ?? '-' }}
Weight:
{{ $pick_up->weight ?? '' }}
Way Bridge:
{{ $pick_up->wayBridge->name ?? '' }}
Way Bridge Serial No.:
{{ $pick_up->way_bridge_serial_no ?? '' }}
Vehicle No.:
{{ $pick_up->vehicle_no ?? '' }}
Actual Bags:
{{ $pick_up->actual_bags ?? '' }}
Gross Weight:
{{ $pick_up->gross_weight ?? '' }}
Tare Weight:
{{ $pick_up->tare_weight ?? '' }}
Actual Net Weight:
{{ $pick_up->actual_weight ?? '' }}
Attachment:
@if (isset($pick_up->attachment) && file_exists(public_path('storage/' . $pick_up->attachment))) @else Not uploaded @endif
@can('pick-up-status')
Status:
@endcan
Transporter:
{{ $pick_up->transporter->transporter_name ?? '' }}
Cold Storage:
{{ $pick_up->coldStorage->storage_name ?? '' }}
Created At:
{{ $pick_up->created_at->format('d-m-Y h:i A') ?? '' }}
Created By:
{{ $pick_up->creator->name ?? '' }}
@can('pick-up-status')
Pick Up History
No Status Status Date Updated Date Updated By
@endcan @endsection @section('page-js') @endsection