@extends('admin.layout') @section('title', 'Task Details') @section('header', 'Task Details') @section('content')
Created on {{ $task->created_at->format('F d, Y \a\t g:i A') }}
Assigned: {{ $task->assigned_at->format('M d, Y g:i A') }}
@endif @if($task->completed_at)Completed: {{ $task->completed_at->format('M d, Y g:i A') }}
@endif{{ $task->technician->name ?? 'Not Assigned' }}
{{ nl2br($task->description) }}
Ticket ID
#{{ $task->ticket->ticket_id }}
Customer
{{ $task->ticket->first_name }} {{ $task->ticket->last_name }}
{{ $task->ticket->email }}
Phone
{{ $task->ticket->phone }}
Apartment
{{ $task->ticket->apartment->name ?? 'N/A' }}
Location
{{ $task->ticket->block_name }} - {{ $task->ticket->floor_number }} - {{ $task->ticket->room_number }}
Issue Description
{{ $task->ticket->issue_description }}
{{ $task->technician->name }}
{{ $task->technician->email }}
{{ $task->technician->phone }}
No technician assigned
@if($task->status === 'pending') @endifPayment successfully recorded
Amount
${{ number_format($task->payment_amount, 2) }}
Method
{{ ucfirst(str_replace('_', ' ', $task->payment_method)) }}
Task completed but payment not recorded
Payment will be available when task is completed
{{ nl2br($task->admin_notes) }}