@extends('layouts.dashboard') @section('title', $pageTitle ?? 'Report') @section('page_header') @endsection @section('page_content') @if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
@if (($reportKey ?? null) === 'stock_summary_warehouse')
@else
@endif
@foreach ($columns as $key => $label) @endforeach @forelse ($rows as $row) @foreach ($columns as $key => $label) @php $value = data_get($row, $key); $isNumeric = in_array($key, $numericColumns ?? [], true); @endphp @endforeach @empty @endforelse
in_array($key, $numericColumns ?? [], true)])>{{ $label }}
$isNumeric])> {{ $isNumeric ? number_format((float) $value, 2) : ($value ?? '-') }}
@if (($reportKey ?? null) === 'stock_summary_warehouse' && (empty($selectedCompanyId) || empty($selectedWarehouseId))) Select company and warehouse to view report. @else No records found. @endif
@endsection