@extends('layouts/contentLayoutMaster') @section('title', 'Rejected Milk Outsale Dispatch Transaction') @section('vendor-style') {{-- vendor css files --}} @endsection @section('content')

Rejected Milk Outsale Transaction Detail

@if($transaction->status == 'completed') @endif
Reference Number {{$transaction->referenceNumber ?? 'N/A'}} Date {{$transaction->time ?? 'N/A'}}
Milk Type @if($transaction->milk_type == 1) Fresh Milk @elseif ($transaction->milk_type == 0) Rejected @else 'N/A' @endif Status @if($transaction->status == 'created') Pending @elseif ($transaction->status == 'completed') Completed @elseif ($transaction->status == 'void') Voided @else N/A @endif
Transaction Type @if($transaction->type == 'mcc_dispatch_to_customer') Collection Center to Customer @elseif ($transaction->type == 'mmt_dispatch_to_customer') MMT to Customer @elseif ($transaction->type == 'mmtPlant_dispatch_to_customer') Plant to Customer @else N/A @endif Area Office {{$transaction->area_office_id ? $transaction->area_office->ao_name ?? 'N/A' : 'N/A'}}
Plant {{$transaction->plant_id ? $transaction->plant->name : 'N/A'}} Vehicle {{$transaction->vehicle_id ? $transaction->vehicle->vehicle_number : $transaction->delivery_challan}}

Customer Details

Customer Name {{ $transaction->customer->name ?? 'N/A' }} Contact {{ $transaction->customer->contact ?? 'N/A' }}
Business Name {{ $transaction->customer->businessName ?? 'N/A'}} Address {{ $transaction->customer->address ?? 'N/A'}}

Dispatched Milk Details

Gross Volume {{ number_format($transaction->gross_volume,3) ?? 'N/A' }} Volume TS {{ number_format($transaction->volume_ts,3) ?? 'N/A' }}
Fat {{ number_format($d_fat,3) ?? 'N/A'}} LR {{ number_format($d_lr,3) ?? 'N/A'}}

Milk Receiving Details

Base Price Per Litre (Rs) {{ number_format($transaction->rec_base_price,2) ?? 'N/A'}}
Gross Volume {{ number_format($transaction->rec_gross_volume,3) ?? 'N/A' }} Volume TS {{ number_format($transaction->rec_volume_ts,3) ?? 'N/A' }}
Fat {{ $transaction->fat ?? 'N/A'}} LR {{ $transaction->lr ?? 'N/A'}}

Total Amount (Rs) : {{number_format($transaction->total_amount,2)}}

@if($transaction->status == 'created')

Customer Receiving

@if ($errorMessage = Session::get('errorMessage'))
@endif
@csrf @method('PUT')
@error('fat') {{$message}} @enderror
@error('lr') {{$message}} @enderror
@error('rec_gross_volume') {{$message}} @enderror
@error('rec_base_price') {{$message}} @enderror
@error('rec_volume_ts') {{$message}} @enderror
@error('total_amount') {{$message}} @enderror
{{-- --}} Cancel
@csrf @method('PUT')
Cancel
@endif
@endsection @section('vendor-script') {{-- vendor files table data --}} @endsection @section('page-script') {{-- --}} @endsection