@extends('layouts.horizontal', ['title' => 'MIS Reporting', 'topbarTitle' => 'Reports', 'nonav' => true]) @section('css') @vite(['node_modules/flatpickr/dist/flatpickr.min.css']) @endsection @section('content')

{{ $reportName }}

Report Date Range: {{ \Carbon\Carbon::parse($start_date)->format('d/m/Y') }} to {{ \Carbon\Carbon::parse($end_date)->format('d/m/Y') }}

@if(session("ho")=="Yes")

Branch Sector

Branch

@else @endif
@if(isset($data[0])) @foreach(array_keys((array) $data[0]) as $column) @endforeach @endif @foreach($data as $store) @foreach((array) $store as $value) @endforeach @endforeach
{{ ucfirst(str_replace('_', ' ', $column)) }}
@if(is_array($value)) {!! json_encode($value) !!} @else {!! $value ?? '' !!} @endif
@endsection @section('scripts')