@extends('layouts/contentLayoutMaster') @section('title', 'Purchase Details') @section('vendor-style') {{-- vendor css files --}} @endsection @section('content')

Plant Reception Detail

@foreach ($plantDetail->tests as $test) @if ($test['qa_test_name'] == 'Fat') @break @endif @endforeach @foreach ($plantDetail->tests as $test) @if ($test['qa_test_name'] == 'SNF') @break @endif @endforeach @foreach ($plantDetail->tests as $test) @if ($test['qa_test_name'] == 'LR') @break @endif @endforeach @if (isset($plantDetail->opening_balance_compartment_1)) @endif @if (isset($plantDetail->compartment_status_1)) @endif @if (isset($plantDetail->opening_balance_compartment_2)) @endif @if (isset($plantDetail->compartment_status_2)) @endif @if (isset($plantDetail->opening_balance_compartment_3)) @endif @if (isset($plantDetail->compartment_status_3)) @endif @if (isset($plantDetail->total_vehicle_weight_after_c1)) @endif @if (isset($plantDetail->total_vehicle_weight_after_c2)) @endif @if (isset($plantDetail->total_vehicle_weight_after_c3)) @endif
Serial Number MR-{{ $plantDetail->serial_number ?? 'N/A' }}
User {{ $plantDetail->user->name }} Total Vehicle Weight @if (isset($plantDetail->total_vehicle_weight)) {{ $plantDetail->total_vehicle_weight }} @endif
Opening Balance {{ $plantDetail->opening_balance ?? '0' }} Type Plant Reception
Time {{ $plantDetail->date }} Plant {{ $plantDetail->plant->name ?? 'N/A' }}
Gate Pass Info
Gate Token {{ $plantDetail->serial_number ?? 'N/A' }} Type {{ $plantDetail->gateinfo->type ?? 'N/A' }}
Gross Volume {{ $plantDetail->gateinfo->gross_volume ?? 'N/A' }} Ts Volume {{ $plantDetail->gateinfo->volume_ts ?? 'N/A' }}
Gate Time In {{ date('d-M-Y H:i:s', strtotime($plantDetail->gateinfo->date_time_in)) }} Gate Time Out
Plant Receptions
Gross Volume(Kgs) {{ $plantDetail->total_vehicle_weight - $plantDetail->total_empty_vehicle_weight }} Gross Volume(Ltrs) {{ $plantDetail->gross_volume ?? '0' }}
TS Volume {{ $plantDetail->volume_ts ?? '0' }} Left Over Milk {{ $plantDetail->left_over_milk }}
Gain Loss {{ $plantDetail->gain_loss }}{{ $test['qa_test_name'] }} {{ $test['value'] }}
{{ $test['qa_test_name'] }} {{ $test['value'] }}{{ $test['qa_test_name'] }} {{ $test['value'] }}
Compartments ({{ $plantDetail->compartments }})
Compartment Status @if ($plantDetail->compartment_status_0 == 1) Accepted @else Rejected @endif
Compartment 1 Balance {{ $plantDetail->opening_balance_compartment_1 }} Compartment 1 Status @if ($plantDetail->compartment_status_1 == 1) Accepted @else Rejected @endif
Compartment 2 Balance {{ $plantDetail->opening_balance_compartment_2 }} Compartment 2 Status @if ($plantDetail->compartment_status_2 == 1) Accepted @else Rejected @endif
Compartment 3 Balance {{ $plantDetail->opening_balance_compartment_3 }} Compartment 3 Status @if ($plantDetail->compartment_status_3 == 1) Accepted @else Rejected @endif
Vehicles Information
Vehicle Number {{ $plantDetail->gateinfo->vehicle->vehicle_number ?? 'N/A' }} Vehicle Type {{ $plantDetail->gateinfo->vehicle->vehicle_type ?? 'N/A' }}
Vehicle Capacity {{ $plantDetail->gateinfo->vehicle->capacity ?? 'N/A' }} Vehicle Portion {{ $plantDetail->gateinfo->vehicle->portion ?? 'N/A' }}
Vehicle Make {{ $plantDetail->gateinfo->vehicle->make ?? 'N/A' }} Vehicle Model {{ $plantDetail->gateinfo->vehicle->model ?? 'N/A' }}
Vehicle Tag No {{ $plantDetail->gateinfo->vehicle->tag_no ?? 'N/A' }} Vehicle Tanker Capacity {{ $plantDetail->gateinfo->vehicle->tanker_capacity ?? 'N/A' }}
Vehicles Weight
Vehicle Weight After c1 {{ $plantDetail->total_vehicle_weight_after_c1 }} Vehicle Weight After c2 {{ $plantDetail->total_vehicle_weight_after_c2 }}
Vehicle Weight After c3 {{ $plantDetail->total_vehicle_weight_after_c3 }}

Milk Dispatches

@foreach ($plantDetail->gateinfo->milkDispatches as $mlkdisptchs) {{-- @dd($mlkdisptchs->areaOffice->ao_name) --}} @endforeach
Serial No Created By Type Gross Volume TS Volume Plant Area Office
{{ $mlkdisptchs->serial_number ?? 'N/A' }} {{ $mlkdisptchs->user->name ?? 'N/A' }} @if ($mlkdisptchs->type == 'ao_dispatch_plant') Ao Dispatch Plant @endif {{ $mlkdisptchs->gross_volume ?? '0' }} {{ $mlkdisptchs->ts_volume ?? '0' }} {{ $mlkdisptchs->plant->name ?? 'N/A' }} {{ $mlkdisptchs->areaOffice->name ?? 'N/A' }}

Tests

{{-- @foreach ($plantDetail->tests as $key => $value) @endforeach --}}
QA Test Name Test Data Type Test Type Compartment Unit of Measure Value Result
{{$value['referenceNumber'] }} {{$value['qa_test_name'] }} {{$value['test_data_type']}} {{$value['test_type']}} {{$value['compartment']}} {{$value['unit_of_measure']}} {{$value['value']}} {{$value['status']}}
@endsection @section('vendor-script') {{-- vendor files table data --}} @endsection @section('page-script') @endsection