@extends('layouts.master') @section('title', 'Cost Center Details') @section('page-header') Cost Center Voucher Details @stop @push('style') @endpush @section('content')
Voucher Type {{ $voucher->voucher_type }}
Description {{ $voucher->description }}
Invoice No {{ $voucher->invoice_no }}
Date {{ $voucher->voucher_date }}
| Sl | Account | Debit | Credit |
|---|---|---|---|
| 1. | {{$voucher->debit_account_name->name}} | {{$voucher->debit_total_amount}} | 0 |
| 2. | {{$voucher->credit_account_name->name}} | 0 | {{$voucher->credit_total_amount}} |
| Total | {{number_format($voucher->debit_total_amount, 2)}} | {{number_format($voucher->credit_total_amount, 2)}} | |
| Sl | Account | Percentage | Amount |
|---|---|---|---|
| {{ $loop->iteration }} | {{ $accountMap[$row['cost_profit_account_id']] ?? 'Unknown' }} | ({{ $row['percentage'] }}%) | {{ number_format($row['amount'], 2) }} | @php $total_amount += $row['amount']; @endphp
| Total | {{number_format($total_amount,2)}} | ||