@extends('layouts.admin')
@section('title', 'Reports')
@section('content')
Reports
Download CSV
@foreach(match($report) { 'payments' => ['Method', 'Payments', 'Amount'], 'inventory' => ['Store', 'Items', 'Quantity', 'Cost value', 'Retail value'], default => ['Status', 'Orders', 'Billed amount', 'Paid amount'] } as $heading)| {{ $heading }} | @endforeach
@forelse($rows as $row)@foreach((array) $row as $value)| {{ is_numeric($value) ? number_format((float) $value, 2) : $value }} | @endforeach
@empty| No records match this report. |
@endforelse
@endsection