@extends('layouts/inventory_layout') @section('title', '| '.$moduleTitle) @section('content') @include('successMsg')
Use List    
{{$moduleTitle}}
@if($data->employee_id != null && $data->room_id == null) @elseif($data->employee_id == null && $data->room_id != null)
Warning: Undefined variable $data in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/inventory_me/transaction/use/approveUse.blade.php on line 54

Warning: Attempt to read property "department_id" on null in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/inventory_me/transaction/use/approveUse.blade.php on line 54
@else @endif
Bill No : {{'U'.$data->use_no}} Bill Date : {{date('d-m-Y', strtotime($data->use_date))}} Branch : {{($data->inv_branch) ? $data->inv_branch->name : 'N/A'}}
Total Quantity : {{$data->total_quantity}} Employee Name : {{($data->inv_employee) ? $data->inv_employee->emp_name_english : 'N/A'}} Department & Room : {{$departmentName.'['.$roomName.']'}}To Branch : {{($data->inv_to_branch) ? $data->inv_to_branch->name : 'N/A'}}


{{-- --}} @php $no = $t_d_qty = $t_qty = $t_amount = $iRow = $current_stock = 0;@endphp @foreach($data->inv_use_details as $details) @php $iRow++; $purchaseBarcodeQuantity = 0; $purchaseBarcodePrice = 0; $current_stock = 0; if ($details->branch_id != null && $details->product_id != null) { $requestMe = new \Illuminate\Http\Request([ 'product_id' => $details->product_id, 'fromBranchId' => $details->branch_id, 'toBranchId' => $details->to_branch_id, 'getUserTypeRadio' => ($details->employee_id != null) ? 'employee' : 'room', 'employee_room_id' => ($details->employee_id != null) ? $details->employee_id : $details->room_id, 'department_id' => $details->department_id, ]); $current_stock = \App\Http\Controllers\inventory\service\InvServiceController::checkInventoryProductStock($requestMe); //$current_stock = ($current_stocks + $purchaseBarcodeQuantity); // dd($details->branch_id, $details->product_id, $requestMe); } $purchaseBarcodeQuantity = ($details->quantity <= $current_stock) ? $details->quantity : $current_stock; $purchaseBarcodePrice = $details->cost_price; @endphp {{-- --}} @php $t_d_qty += $details->requested_qty; $t_qty += $purchaseBarcodeQuantity; $t_amount += ($purchaseBarcodeQuantity * $details->cost_price); @endphp @endforeach {{-- --}}
SL No. Product Name Uom Name Current StockDemandQuantity
{{++$no}} {{$details->inv_product->name}} {{$details->inv_product->inv_uom->name}} {{ $current_stock }} {{ $details->requested_qty }} @if($isEditAccess == true) @else {{$purchaseBarcodeQuantity}} @endif
Total{{$t_d_qty}}{{$t_qty}}
@if($t_qty > 0) @include('gnr.tools.approvalConfig.approvalLogs') @if($data->authStatus != 'approved' && $data->authStatus != 'rejected') @include('inventory.tools.approvalSystem.invApprove') @endif @endif
@endsection