@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/viewUseDetails.blade copy.php on line 67

Warning: Attempt to read property "department_id" on null in /home/shikkhaplus/public_html/morning_bird_bk/resources/views/inventory_me/transaction/use/viewUseDetails.blade copy.php on line 67
@else @endif
Bill No : {{'US'.$data->use_no}} Bill Date : {{date('d-m-Y', strtotime($data->use_date))}} Branch : {{($data->inv_branch) ? $data->inv_branch->name : 'N/A'}}Employee Name : {{($data->inv_employee) ? $data->inv_employee->emp_name_english : 'N/A'}} Department & Room : {{$departmentName.'['.$roomName.']'}}To Branch : {{$data->inv_to_branch->name}}
Total Quantity : {{$data->total_quantity}} Total Amount : {{number_format($data->total_amount, 2)}} Discount Amount : {{number_format($data->discount_amount,2)}} T/A with discount : {{number_format($data->total_amount_after_discount, 2)}}
Gross Toal : {{number_format($data->gross_total, 2)}} Pay Total : {{number_format($data->pay_amount, 2)}}


@php $no=0; $t_qty = $t_amount = 0; @endphp @foreach($data->inv_use_details as $details) @php $purchaseBarcodeQuantity = 0; $purchaseBarcodeQuantity = $details->quantity; @endphp @php $t_qty += $purchaseBarcodeQuantity; $t_amount += ($purchaseBarcodeQuantity * $details->cost_price); @endphp @endforeach
SL No. Product Name Model Name Barcode Use Information
Qty Unit Price Total Price
{{++$no}} {{$details->inv_product->name}} {{$details->inv_product->inv_model->name}} {{$details->inv_product->barcode}} {{$purchaseBarcodeQuantity}} {{number_format($details->cost_price, 2)}} {{number_format($purchaseBarcodeQuantity * $details->cost_price, 2)}}
Total {{$t_qty}} Total {{number_format($t_amount, 2)}}
@endsection