@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)@endforeach@forelse($rows as $row)@foreach((array) $row as $value)@endforeach@empty@endforelse
{{ $heading }}
{{ is_numeric($value) ? number_format((float) $value, 2) : $value }}
No records match this report.
@endsection