@extends('layouts.app') @section('content') @php($base = array_merge(['type'=>'income'], request()->query()))

{{ __('app.income_report') }}

{{ __('app.report_filter_hint') }}

CSVExcel{{ __('app.print') }}
{{ __('app.total') }}{{ number_format($summary['total'],2) }}
{{ __('app.paid') }}{{ number_format($summary['paid'],2) }}
{{ __('app.due') }}{{ number_format($summary['due'],2) }}
@forelse($rows as $s)@empty@endforelse
{{ __('app.invoice') }}{{ __('app.date') }}{{ __('app.customer') }}{{ __('app.currency') }}{{ __('app.total') }}{{ __('app.paid') }}{{ __('app.due') }}
{{ $s->invoice_no }}{{ $s->sale_date?->format('Y-m-d') }}{{ $s->customer->name ?? '-' }}{{ $s->currency ?? 'AFN' }}{{ number_format($s->total,2) }}{{ number_format($s->paid,2) }}{{ number_format($s->due,2) }}
{{ __('app.no_records') }}
{{ $rows->links() }} @endsection