@extends('layouts.app') @section('title', 'Pending Approvals') @section('page-title', 'Pending Approvals') @section('content')
Tasks Awaiting Approval {{ $tasks->total() }} Pending
@forelse($tasks as $task) @empty @endforelse
Task Assigned To Priority Completed At Planned End Actions
{{ Str::limit($task->title, 40) }} @if($task->description)
{{ Str::limit($task->description, 60) }}
@endif
{{ strtoupper(substr($task->assignedUser->name, 0, 1)) }}
{{ $task->assignedUser->name }}
{{ str_replace('_', ' ', $task->assignedUser->role) }}
{{ $task->priority }} {{ $task->actual_end ? $task->actual_end->format('d M Y h:i A') : '—' }} {{ $task->planned_end->format('d M Y') }}
@csrf
All caught up! No tasks pending approval.
@if($tasks->hasPages()) @endif
@endsection