@extends('layouts.page') @section('title', 'Admin Indent Pool Summary') @section('content')
@include('summary_templet.templet', [ 'headers' => ['EPAY', 'Amount'], 'summaryData' => $results, 'summaryColumns' => [ fn($row) => '' . $row->epay . '', fn($row) => '₹' . AppHelper::numberUS($row->total_indent_amount) . '', ], 'detailMap' => fn($summary) => collect($pool->records())->where('epay', $summary->epay), 'detailHeaders' => ['Passbook Name', 'Bank Name', 'Account No', 'Amount', 'GST', 'TDS', 'Release Amount'], 'detailColumns' => [ fn($d) => '' . ($d['bank_account']->passbook_name ?? 'N/A') . '', fn($d) => '' . (AppHelper::dropdown($d['bank_account']->bank_name, 'banks') ?? 'N/A') . '', fn($d) => '' . ($d['bank_account']->account_no ?? 'N/A') . '', fn($d) => '₹' . AppHelper::numberUS($d['amount'] ?? 0) . '', fn($d) => '₹' . AppHelper::numberUS($d['gst'] ?? 0) . '', fn($d) => '₹' . AppHelper::numberUS($d['tds'] ?? 0) . '', fn($d) => '₹' . AppHelper::numberUS($d['release_amount'] ?? 0) . '', ] ]) @endsection