@extends('admin.layouts.app') @section('title', 'Client Discount Report') @push('styles') @endpush @section('container')

Client Discount Report

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@error('client')

{{ $message }}

@enderror
@error('start_date')

{{ $message }}

@enderror
@error('end_date')

{{ $message }}

@enderror
@if(count($logs)>0)

Client Discount Report

@php $total = 0; @endphp @foreach ($logs as $index => $log) @php $total += $log->amount; @endphp @endforeach
SL Date Client Name Address Discount Amount
{{ $index+1 }} {{ $log->date }} {{ $log->client->name??'' }} {{ $log->client->address??'' }} {{ number_format($log->amount,2) }}
Total {{ number_format($total,2) }}
@endif
@endsection @push('scripts') @endpush