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

Purchase Item Cost Allocation

@csrf
Other Expenses
@foreach ($addedExpenses as $key => $costAllocatedJournal) @endforeach
# Ledger Dr Ledger Cr Amount Remarks
{{ $key + 1 }}
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