@extends('layouts/inventory_layout') @section('title', '| '.$moduleTitle) @section('content') @include('successMsg')
{{$moduleTitle}}
Bill No : {{'BR'.$data->branch_requisition_no}} Bill Date : {{date('d-m-Y', strtotime($data->branch_requisition_date))}} From Branch : {{$data->inv_branch->name}}
Total Quantity : {{$data->total_quantity}} To Branch : {{$data->inv_to_branch->name}}


@php $no=0; $t_qty = $t_r_qty = $t_amount = $purchaseBarcodeQuantity = $requestedQuantity = 0;@endphp @foreach($data->inv_branch_requisition_details as $details) @php $purchaseBarcodeQuantity = \App\Models\inventory\transaction\issue\InvTraIssueDetails::where('requisition_id',$details->id)->where('to_branch_id',$details->branch_id)->where('product_id',$details->product_id)->sum('quantity'); $requestedQuantity = $details->requested_qty; @endphp {{-- --}} {{-- --}} @php $t_r_qty += $requestedQuantity; $t_qty += $purchaseBarcodeQuantity; $t_amount += ($purchaseBarcodeQuantity * $details->inv_product->cost_price); @endphp @endforeach {{-- --}}
SL No. Product Name Uom Name Requested Qty Received Qty
{{++$no}} {{$details->inv_product->name}} {{$details->inv_product->inv_Uom->name}} {{$requestedQuantity}} {{$purchaseBarcodeQuantity}}{{number_format($details->inv_product->cost_price, 2)}}{{number_format($purchaseBarcodeQuantity * $details->inv_product->cost_price, 2)}}
Total {{$t_r_qty}} {{$t_qty}}{{number_format($t_amount, 2)}}

Received System
{!! Form::open(array('url' => '', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'approveFormForAllSector')) !!} {!! Form::hidden('applicationId', $data->id,['id'=>'applicationId']) !!}
Remarks
{!! Form::textarea('receivedComment', null, ['id'=>'receivedComment','class'=>'form-control form-control js-comment-src', 'rows' => 2, 'cols' => 40]) !!}

{!! Form::button('Received', ['id' => 'received', 'class' => 'btn btn-success']) !!}
{!! Form::close() !!}