@extends('layouts.admin') @section('title', 'Deductions') @push('styles') @endpush @section('content')
Total Pending
Rs. {{ number_format($stats['total_pending'], 2) }}
Total Approved
Rs. {{ number_format($stats['total_approved'], 2) }}
Total Applied
Rs. {{ number_format($stats['total_applied'], 2) }}
Pending Count
{{ $stats['count_pending'] }}

All Deductions

@forelse($deductions as $deduction) @empty @endforelse
Deduction # Merchant Type Amount Date Status Actions
{{ $deduction->deduction_number }} {{ $deduction->merchant->name ?? 'N/A' }} {{ ucfirst(str_replace('_', ' ', $deduction->deduction_type)) }} Rs. {{ number_format($deduction->amount, 2) }} {{ $deduction->deduction_date->format('M d, Y') }} @if($deduction->status == 'pending') Pending @elseif($deduction->status == 'approved') Approved @elseif($deduction->status == 'rejected') Rejected @else Applied @endif View @if($deduction->status == 'pending')
@csrf
@endif
No deductions found
@if($deductions->hasPages())
{{ $deductions->links() }}
@endif
@endsection