{{-- Task Module — My Tasks / All Tasks (Kanban Board) Extend your existing layout. Replace 'layouts.app' with your layout name. --}} @extends('layouts.app') @section('title', $view === 'my' ? 'My Tasks' : 'All Tasks') @push('styles') @endpush @section('content')
{{-- Header --}}

Tasks

@if($isAdmin) Admin view — showing {{ $view === 'my' ? 'your' : 'all' }} tasks @else Your assigned tasks @endif

@if(auth()->user()->role === 'office_admin') @endif
{{-- View switcher (admin only) --}} @if($isAdmin)
My Tasks All Tasks Table View Outstanding Report
@endif {{-- Kanban Board --}}
{{-- TO DO --}}
To Do {{ $todo->count() }}
@forelse($todo as $task) @include('tasks._card', ['task' => $task]) @empty

No tasks

@endforelse
{{-- IN PROGRESS --}}
In Progress {{ $inProgress->count() }}
@forelse($inProgress as $task) @include('tasks._card', ['task' => $task]) @empty

No tasks

@endforelse
{{-- DONE --}}
Done {{ $done->count() }}
@forelse($done as $task) @include('tasks._card', ['task' => $task, 'isDone' => true]) @empty

No tasks

@endforelse
{{-- Task Detail Modal --}} @include('tasks._detail_modal') @endsection @push('scripts') @endpush