@extends('layouts.master') @section('css') @endsection @section('title') Stock Item Cost Allocation @endsection @section('content')

Stock Item Cost Allocation

@csrf
Other Expenses
@foreach ($addedExpenses as $key => $costAllocatedJournal) @endforeach
# Ledger Dr Ledger Cr Amount Remarks
{{ $key + 1 }} Voucher No : {{ $costAllocatedJournal->accountingVoucher->voucher_number }} Voucher Date : {{ date('d-m-Y', strtotime($costAllocatedJournal->accountingVoucher->voucher_date)) }}
0.0

@foreach ($addedJournals as $key => $costAllocatedJournal) @foreach($costAllocatedJournal as $journal) @endforeach @endforeach
# Journal/Payment Voucher Amount
{{ $loop->iteration }} @php $rowId = $loop->iteration; $name =''; $details = \App\Models\AccountingVoucherDetails::where('accounting_voucher_id',$key)->where('dr_or_cr','dr')->get(); foreach ($details as $value) { $name .= $value->ledger->name.':' .$value->amount.'|'; } $accountingVoucher = \App\Models\AccountingVoucher::find($key); @endphp
{{ $journal->ledger->name }}
0.0
@endsection @section('script') @endsection