Pick Up Code:
{{ $showDetails->pick_up_code ?? '' }}
Farmer Name:
{{ $showDetails->farmer->farmer_name ?? '-' }}
Farm Name:
{{ $showDetails->farm->farm_name ?? '-' }}
Product Name:
{{ $showDetails->product->name ?? '-' }}
Location:
{{ ($showDetails->farm->address ?? '') . ', ' . ($showDetails->farm->address_2 ?? '') . ', ' . ($showDetails->farm->pincode ?? '') }}
No Of Bags:
{{ $showDetails->no_of_bags ?? '-' }}
Weight:
{{ $showDetails->weight ?? '' }}
Actual Bags:
{{ $showDetails->actual_bags ?? '' }}
Actual Weight:
{{ $showDetails->actual_weight ?? '' }}
Attachment:
@if (isset($showDetails->attachment) && file_exists(public_path('storage/' . $showDetails->attachment)))
@else
Not uploaded
@endif
Status:
@php
switch ($showDetails->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"; // A neutral default for unknown statuses
$buttonText = "Unknown Status";
break;
}
@endphp
Transporter:
{{ $showDetails->transporter->transporter_name ?? '' }}
Cold Storage:
{{ $showDetails->coldStorage->storage_name ?? '' }}
Created At:
{{ $showDetails->created_at->format('d-m-Y h:i A') ?? '' }}
Created By:
{{ $showDetails->creator->name ?? '' }}