@extends('layouts/contentLayoutMaster') @section('title', 'Revenue Items Issuance Note') @section('vendor-style') {{-- vendor css files --}} @endsection @section('content')

Issuance Note : {{ $itemIssuance->code }}

@if ($success = Session::get('success'))
@endif @if ($errorMessage = Session::get('errorMessage'))
@endif
Store : {{$itemIssuance->store ? $itemIssuance->store->name : 'N/A'}}
Plant : {{$itemIssuance->plant ? $itemIssuance->plant->name : 'N/A'}}
Area Office : {{$itemIssuance->ao ? $itemIssuance->ao->ao_name : 'N/A'}}
Dispatch Point : {{ $itemIssuance->dp ? $itemIssuance->dp->name : 'N/A' }}
Collection Center : {{ $itemIssuance->mcc ? $itemIssuance->mcc->name : 'N/A' }}
Building : {{$itemIssuance->building ? $itemIssuance->building->name : 'N/A'}}
User : {{$itemIssuance->user ? $itemIssuance->user->name : 'N/A'}}
Type : @switch($itemIssuance->type) @case('user') User @break @case('plant') Plant @break @case('building') Plant Building @break @case('plant_mcc') Plant CP @break @case('ao') Area Office @break @case('dp') Dispatch Point @break @case('mcc') Collection Center @break @case('ao_building') AO Building @break @default N/A @endswitch
Created By : {{$itemIssuance->createdBy ? $itemIssuance->createdBy->name : 'N/A'}}
Date : {{$itemIssuance->date ? $itemIssuance->date : 'N/A'}}
Note : {{$itemIssuance->note ? $itemIssuance->note : 'N/A'}}
{{-- --}} @foreach ($itemIssuance->items as $item) @php $citem = App\Models\RevenueItems::where('_id', $item['itemId'])->first() ?? []; $uom = $citem->uom ? $citem->uom->abbrevation : 'N/A'; @endphp {{-- --}} @endforeach
Code SAP Code Item Unit QuantityQuantity
(Per UOM)
Weighted Avg
Rate
{{ $citem->code ? $citem->code : 'N/A' }} {{ $citem->sapCode ? $citem->sapCode : 'N/A' }} {{ $citem->name ? $citem->name : 'N/A' }} {{ $uom }} {{ $item['quantity'] }} {{ $item['uomQuantity'] ? $item['uomQuantity'] : 'N/A' }} {{ $item['war'] ? $item['war'] : 'N/A' }}
@endsection @section('vendor-script') @endsection