@extends('layouts.app') @section('title') {{__('Inventory Report')}} @endsection @section('breadcrumb')

{{__('Inventories Report')}}

@endsection @section('content')
has('date')) value="{{request()->get('date')}}" @else value="{{ date('F d, Y', strtotime('-1month')) . ' - ' . date('F d, Y') }}" @endif id="date" required>
@if(request()->has('date'))
{{-- --}} {{-- --}} @foreach($purchase_products as $key => $purchase) {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endforeach
{{__('#')}} {{__('Laboratory')}} {{__('Product Code')}} {{__('Product Type')}} {{__('Particulars')}} {{__('Product Unit')}} {{__('Delivery Receipt No.')}} {{__('Sales Invoice')}}{{__('PO No.')}}{{__('Lot No./Batch No.')}} {{__('Expiry Date')}} {{__('Quantity')}} {{__('Cost')}} {{__('Total Cost')}}{{__('Quantity')}} {{__('Total price')}}
{{$key+1}} {{$purchase['purchase_product']['purchase']['branch']['name']}} {{$purchase['purchase_product']['product']['code']}} @if(isset($purchase['purchase_product']['product']['product_type']['name'])) {{$purchase['purchase_product']['product']['product_type']['name']}} @endif {{-- {{$purchase['purchase_product']['product']['product_category']['name']}} --}} {{$purchase['purchase_product']['product']['name']}} {{$purchase['purchase_product']['product']['description']}} @if(isset($purchase['purchase_product']['product']['product_unit']['name'])) {{$purchase['purchase_product']['product']['product_unit']['name']}} @endif {{$purchase['delivery_receipt_no']}} {{$purchase['sales_invoice']}} {{$purchase['purchase_order_no']}} {{$purchase['batch_no']}} {{$purchase['expiry_date']}} {{$purchase['quantity']}} {{$purchase['cost']}} {{$purchase['quantity'] * $purchase['cost']}} {{$purchase['purchase']['branch']['name']}} {{$purchase['purchase_product']['branch']['name']}} --}} {{-- {{$purchase['purchase']['supplier']['name']}} --}} {{-- {{$purchase['product']['name']}} {{$purchase['purchase_product']['product']['name']}} {{formated_price($purchase['price'])}} {{$purchase['quantity']}} {{formated_price($purchase['total_price'])}}
@foreach($adjustment_products as $key => $adjustment) @endforeach
{{__('#')}} {{__('Laboratory')}} {{__('Particulars')}} {{__('Transaction type')}} {{__('Unit')}} {{__('Type')}} {{__('Code')}} {{__('Quantity')}}
{{$key+1}} {{$adjustment->adjustment->branch->name}} {{-- {{$adjustment['adjustment']['branch']['name']}} --}} {{-- {{$adjustment['product']['product_category']['name']}} --}} {{$adjustment['product']['name']}} {{$adjustment['product']['description']}} {{-- {{$adjustment['type']}} --}} @if($adjustment['type']==1) In {{-- {{__('In stock')}} --}} @else Out {{-- {{__('Out stock')}} --}} @endif @if(isset($adjustment['product']['product_unit']['name'])) {{$adjustment['product']['product_unit']['name']}} @endif @if(isset($adjustment['product']['product_type']['name'])) {{$adjustment['product']['product_type']['name']}} @endif {{$adjustment['product']['code']}} {{$adjustment['quantity']}}
{{-- --}} @foreach($transfer_products as $key => $transfer) {{-- --}} @endforeach
{{__('#')}}{{__('From branch')}}{{__('Designated Laboratory')}} {{__('Paticulars')}} {{__('Unit')}} {{__('Type')}} {{__('Code')}} {{__('Quantity')}}
{{$key+1}} {{$transfer['from_branch']['name']}} {{$transfer['to_branch']['name']}} {{-- {{$transfer['product']['product_category']['name']}} --}} {{$transfer['product']['name']}} {{$transfer['product']['description']}} @if(isset($transfer['product']['product_unit']['name'])) {{$transfer['product']['product_unit']['name']}} @endif @if($transfer['product']['product_type']['name']) {{$transfer['product']['product_type']['name']}} @endif {{$transfer['product']['code']}} {{$transfer['quantity']}}
{{--
@foreach($consumption_products as $key => $consumption) @endforeach
{{__('#')}} {{__('Branch')}} {{__('Test')}} {{__('Product')}} {{__('Quantity')}}
{{$key+1}} {{$consumption['branch']['name']}} --}} {{-- {{$consumption['testable']['name']}} --}} {{-- {{$consumption['product']['name']}} {{$consumption['quantity']}}
--}} {{--
--}}
{{-- --}} @foreach($product_summary as $key => $product) {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endforeach {{-- @foreach($consumption_products as $key => $consumption) @endforeach --}}
{{__('#')}} {{__('Product Type')}} {{__('Product Code')}} {{__('Paticulars')}}{{__('Description')}}{{__('Beginning Balance')}} {{__('Delivery')}} {{__('Total')}} {{__('Consumption')}} {{__('End Balance')}} {{__('Total Cost (Used)')}} {{__('Supplies On Hand')}}
{{__('Qty')}} {{__('Cost/unit')}} {{__('Supplier')}} {{__('SI No.')}} {{__('DR No.')}} {{__('Qty Delivered')}} {{__('Cost/unit')}} {{__('No. of Units')}} {{__('Cost/unit')}} {{__('No. of Units')}} {{__('Cost/unit')}} {{__('No. of Units')}} {{__('Cost/unit')}}
{{$key+1}}{{$product->product->product_type->name}} {{$product->product->code}} {{$product->product->product_category->name}}{{ $product->name}} {{ $product->product->description}}{{$product['product_type']}} {{$product['code']}} {{$product['particulars']}}{{$product['description']}}{{$product['beginning_qty']}} @foreach($product['beginning_cost_list'] as $bcl) {{$bcl}}
@endforeach
{{$product['supplier']}} {{$product['si_no']}} {{$product['dr_no']}} {{$product['total_in']}} {{$product['delivery_cost']}} {{$product['total_qty']}}{{$product['total_out_cost']}} @foreach($product['total_out_cost'] as $bcl) {{$bcl}}
@endforeach
{{$product['consumption']}}{{$product['consumption_cost']}} @foreach($product['consumption_cost'] as $bcl) {{$bcl}}
@endforeach
{{$product['end_balance']}}{{$product['end_balance_cost']}} @foreach($product['end_balance_cost'] as $bcl) {{$bcl}}
@endforeach
{{number_format((float)$product['total_cost'], 2, '.', '')}} {{number_format((float)$product['supplies'], 2, '.', '')}}{{$product['consumption'] * $product['consumption_cost']}}
{{$key+1}} {{$consumption['branch']['name']}} {{$consumption['testable']['name']}} {{$consumption['product']['name']}} {{$consumption['quantity']}}
@foreach($disposal as $key => $dispose) @endforeach
{{__('#')}} {{__('Laboratory')}} {{__('Paticulars')}} {{__('Unit')}} {{__('Type')}} {{__('Code')}} {{__('Quantity')}} {{__('Requested By')}} {{__('Approved By')}}
{{$key+1}} {{$dispose->disposal_product->branch->name}} {{-- {{$dispose['product']['product_category']['name']}} --}} {{$dispose['product']['name']}} {{$dispose['product']['description']}} @if(isset($dispose['product']['product_unit']['name'])) {{$dispose['product']['product_unit']['name']}} @endif {{$dispose['product']['code']}} @if(isset($dispose['product']['product_type']['name'])) {{$dispose['product']['product_type']['name']}} @endif {{$dispose->quantity_deducted}} {{isset($dispose->disposal_product->requestor_user->name) ?$dispose->disposal_product->requestor_user->name:'' }} {{isset($dispose->disposal_product->requestor_user->last_name) ? $dispose->disposal_product->requestor_user->last_name : ''}} {{isset($dispose->disposal_product->issuer_user->name)? $dispose->disposal_product->issuer_user->name: ''}} {{isset($dispose->disposal_product->issuer_user->last_name) ? $dispose->disposal_product->issuer_user->last_name : ''}}
@endif
@if(request()->has('date')) @endif
@endsection @section('scripts') {{-- --}} @endsection