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

@yield('page-header')

@include('includes.input-groups.select-group', ['modelVariable' => 'accounts', 'edit_id' => request('account_id')])
@include('includes.input-groups.date-range', ['date1' => request('from',date('Y-m-d')), 'date2' => request('to',date('Y-m-d')), 'is_read_only' => true])
Refresh
@foreach ($vouchers as $voucher) @php $route = 'voucher-' . strtolower($voucher->voucher_type) . 's.show'; @endphp @endforeach @if($vouchers->currentPage() == $vouchers->lastPage()) @endif
Sl Date Voucher No Voucher Type Company Description Amount
{{ $loop->iteration }} {{ $voucher->date }} {{ $voucher->invoice_no }} {{ $voucher->voucher_type }} {{ optional($voucher->company)->name }} {{ $voucher->description }} {{ number_format($voucher->amount, 2) }}
Total In Page {{ number_format($vouchers->sum('amount'), 2) }}
Grand Total {{ number_format($grand_total, 2) }}
@include('partials._paginate', ['data' => $vouchers])
@endsection @section('js') @endsection