@extends('layouts.layoutapp') @section('content')

Invoice Report

@error('start_date')
{{ $message }}
@enderror
@error('end_date')
{{ $message }}
@enderror
{{-- --}} @foreach ($results as $data) {{-- --}} @endforeach
Branch Invoice ID Client Invoice Date Due Date GST Amount Tax Discount Final Amount Status
{{ $data->branch->name ?? '' }} {{ $data->invoice_id ?? '' }} {{ $data->client ? $data->client->user->name : ''}} {{ $data->invoice_date ? \Carbon\Carbon::parse($data->invoice_date)->format('d-m-Y') : '' }} {{ $data->due_date ? \Carbon\Carbon::parse($data->due_date)->format('d-m-Y') : '' }} {{ $data->gst == 'Y' ? 'Yes' : 'No' }} {{ $data->amount ?? '' }} {{ number_format($data->total_tax_amount, 2) }} {{ number_format((float) $data->discount ?? 0, 2) }} {{ $data->final_amount ?? '' }} {{$statusList[$data->status] ?? 'Unknown' }}
@endsection {{-- @push('scripts') @endpush --}}