@php
$direct_job_order = [
[
'id' => 1,
'title' => 'Operation Job Order',
'designated' => 'Admin',
'status' => [
'type' => 'pending',
'message' => 'Waiting for Content Writer Approval',
],
],
[
'id' => 2,
'title' => 'Operation Job Order',
'designated' => 'Admin',
'status' => [
'type' => 'review',
'message' => 'Pending Review',
],
],
[
'id' => 3,
'title' => 'Operation Job Order',
'designated' => 'Admin',
'status' => [
'type' => 'approved',
'message' => 'Approved',
],
],
];
@endphp
pagination here.
@foreach ($web_requests as $web_request)
Title
Issued To
Deadline
Actions
@endforeach
{{--
{{ $web_request->issued_to->name }}
{{ $web_request->deadline }}
{{-- @php
$statusClasses = [
'approved' => 'text-green-700 bg-green-300',
'pending' => 'text-yellow-700 bg-yellow-300',
'review' => 'text-blue-700 bg-blue-300',
'delayed' => 'text-red-700 bg-red-300',
];
@endphp
{{ $direct['status']['message'] }}
--}}