@extends('layouts.master') @section('title', 'Cost Center Details') @section('page-header') Cost Center Voucher Details @stop @push('style') @endpush @section('content')
@include('partials._alert_message')

@yield('page-header')

Print

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)}}
@php $total_amount = 0; @endphp @foreach ($voucher->cost_profit_acc_details as $row) @php $total_amount += $row['amount']; @endphp @endforeach
Sl Account Percentage Amount
{{ $loop->iteration }} {{ $accountMap[$row['cost_profit_account_id']] ?? 'Unknown' }} ({{ $row['percentage'] }}%) {{ number_format($row['amount'], 2) }}
Total {{number_format($total_amount,2)}}
@endsection