@if(isset($reportData) && !empty($reportData)) @foreach($reportData as $k=>$mailData)
SITE NAME : {{ $data['site_name'] }} | Stock Ledger From : {{ $data['from_date'] }} To : {{ $data['to_date'] }} | ||||||||
PRODUCT NAME : {{ $data['material_name'] }} - UNIT | PRODUCT TYPE : TEST - TYPE | ||||||||
Id | Vno | Trn. Type | Date | Site | Description | Receipt | Issue | Closing | |
---|---|---|---|---|---|---|---|---|---|
Opening: | {{-- | {{ number_format($reportData['opening'],3) }} | --}}0 | ||||||
{{ $key+1 }} | {{ $data['stockLedgerData']['vno'] }} | @if($data['stockLedgerData']['trn_type'] == \Modules\Requisition\Entities\RequisitionApprovalStockLedgerMapping::REQ_APPROVAL_TYPE) {{ \Modules\Requisition\Entities\RequisitionApprovalStockLedgerMapping::REPORTSTATUES[$data['stockLedgerData']['trn_type']] }} @endif @if($data['stockLedgerData']['trn_type'] == \Modules\Requisition\Entities\RequisitionApprovalStockLedgerMapping::ISSUE_TYPE) {{ \Modules\Requisition\Entities\RequisitionApprovalStockLedgerMapping::REPORTSTATUES[$data['stockLedgerData']['trn_type']] }} @endif @if($data['stockLedgerData']['trn_type'] == \Modules\Requisition\Entities\RequisitionApprovalStockLedgerMapping::RECEIPT_TYPE) {{ \Modules\Requisition\Entities\RequisitionApprovalStockLedgerMapping::REPORTSTATUES[$data['stockLedgerData']['trn_type']] }} @endif | {{ $data['stockLedgerData']['date'] }} | {{ $data['stockLedgerData']['siteCode'] }} | {{ $data['stockLedgerData']['desc'] }} | @if($data['stockLedgerData']['receipt'] != 0) {{ number_format($data['stockLedgerData']['receipt'],3) }} @endif | @if($data['stockLedgerData']['issue'] != 0) {{ number_format($data['stockLedgerData']['issue'],3) }} @endif | @if($data['stockLedgerData']['closing'] != 0) {{ number_format($data['stockLedgerData']['closing'],3) }} @endif | |
Total: | @foreach(\Illuminate\Support\Arr::only($mailData,'total') as $key =>$detail){{ number_format($detail['totalReceipt'],3) }} | {{ number_format($detail['total_issue'],3) }} | {{ number_format($detail['last_opening'],3) }} | @endforeach