@extends('layouts.layoutapp') @section('content')
@error('start_date')
{{ $message }}
@enderror
@error('end_date')
{{ $message }}
@enderror
@foreach ($results as $data) @endforeach
Invoice ID Client Name Branch Name Invoice Date Due Date GST Amount Final Amount Discount Type Discount Status

{{ $data->invoice_id ?? '' }}

{{ $data->client ? $data->client->user->name : ''}}

{{ $data->branch->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 ?? '' }}

{{ $data->final_amount ?? '' }}

{{ $data->discount_type === null ? 'Not Set' : ($data->discount_type == 1 ? 'Fixed' : 'Percentage') }}

{{ $data->discount ?? '' }}

{{$statusList[$data->status] ?? 'Unknown' }}

@endsection {{-- @push('scripts') @endpush --}}