@extends('backend.layouts.layout') @section('content')
| Task ID | Task Name | Client | Properties | Assigned To | Scheduled Date | Priority | Status | Actions |
|---|---|---|---|---|---|---|---|---|
| #{{ $task->id }} |
{{ $task->task_name }}
@if($task->description)
{{ Str::limit($task->description, 50) }} @endif |
{{ $task->client->client_name }} |
@foreach($task->taskProperties as $taskProperty)
{{-- @dd($taskProperty->property->property_name)--}}
{{ $taskProperty->property->property_name }}
@if($taskProperty->property_details)
@php
$details = json_decode($taskProperty->property_details, true);
$units = $details['selected_units'] ?? [];
@endphp
({{ count($units) }} areas)
@endif
@endforeach |
{{ $task->employee->first_name }} {{ $task->employee->last_name }} | {{ $task->scheduled_date->format('M d, Y') }} | {{ ucfirst($task->priority) }} | {{ ucfirst($task->status) }} |