@extends('admin.layouts.app') @section('title', 'Recent Activity Report') @push('styles') @endpush @section('content')

Recent Activity Report

Order status events from the dashboard “Recent Activity” feed. By default, shows the last 30 days. Use filters to narrow or expand the date range.

@csrf
@if ($filterActive) Clear @endif
Time filters apply to the clock time of each event (optional). Combine with dates to narrow a specific day and window.
@foreach ($rows as $row) @php $userName = ucfirst(trim($row->Fname.' '.$row->Lname)); $execName = trim(($row->ExecFname ?? '').' '.($row->ExecLname ?? '')); $status = $row->Status; if ($status === 'Delivered') { $badgeClass = 'badge-success'; $activity = 'Order delivered for'; } elseif ($status === 'Pending') { $badgeClass = 'badge-warning'; $activity = 'Order pending for'; } elseif ($status === 'Cancelled') { $badgeClass = 'badge-danger'; $activity = 'Order cancelled by'; } else { $badgeClass = 'badge-secondary'; $activity = 'Status updated ('.ucfirst((string) $status).') for'; } @endphp @endforeach
Status Activity Customer name Executive name Date Time
{{ ucfirst((string) $status) }} {{ $activity }} {{ $userName }} @if ($execName !== '') {{ ucfirst($execName) }} @else Unassigned @endif {{ $row->CreatedDate ? date('d M', strtotime($row->CreatedDate)) : '' }} {{ $row->CreatedDate ? date('h:i A', strtotime($row->CreatedDate)) : '' }}
@endsection @push('scripts') @endpush