@php $authUser = auth()->user(); $headerInbox = \App\Models\WorkflowTask::query() ->where('status', '!=', 'completed') ->whereHas('currentStep', function ($query) use ($authUser) { $query->where('assignee_id', $authUser->id)->where('status', 'active'); }) ->with(['customer']) ->latest() ->limit(5) ->get(); @endphp
Close
Search
Fix
o
F
X
{{ $headerInbox->count() }}
@forelse($headerInbox as $inboxTask)
{{ $inboxTask->ref_no }}
{{ $inboxTask->customer->name ?? '' }}
@empty
No tasks waiting on you
@endforelse
See all tasks
Profile
@csrf
Logout
{{ $authUser->name }}
{{ $authUser->role->name ?? 'User' }}
Admin
Profile
@if(\App\Support\WorkflowAccess::canAccess($authUser))
Dashboard
@endif @if($authUser->allows('manage-users') || $authUser->allows('manage-roles'))
User Management
@if($authUser->allows('manage-roles'))
Roles
@endif @if($authUser->allows('manage-users'))
Users
@endif
@endif @if($authUser->allows('view-customers') || $authUser->allows('manage-customers'))
Customers
@endif @if(\App\Support\WorkflowAccess::canAccess($authUser))
Fix tasks
All tasks
My inbox
@if(\App\Support\WorkflowAccess::canCreate($authUser))
New fix task
@endif
@endif
@yield('heading')
Home
@yield('breadcrumb')
@include('admin.partials.alerts') @yield('content')
@stack('scripts')