@extends('layouts.master')
@section('title', 'Diary Entry Details')
@push('styles')
@include('partials._diary-design')
@endpush
@section('content')
{{-- Breadcrumb --}}
{{-- Page Header --}}
{{-- Alerts --}}
@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
@php
$priorityBadge = match($diaryEntry->priority) {
'high' => 'danger',
'medium' => 'warning',
default => 'muted'
};
$statusBadge = match($diaryEntry->status) {
'completed' => 'success',
'in-progress' => 'primary',
'pending' => 'warning',
'deferred' => 'muted',
default => 'muted'
};
@endphp
{{-- Main content --}}
{{-- Info tiles --}}
Date & Time
{{ $diaryEntry->formatted_date }}
{{ $diaryEntry->formatted_time }}
Task Type
{{ ucwords(str_replace('-', ' ', $diaryEntry->task_type)) }}
Client / Case
{{ $diaryEntry->client_case ?? 'Not specified' }}
Location
{{ $diaryEntry->location ? ucwords(str_replace('-', ' ', $diaryEntry->location)) : 'Not specified' }}
Priority
{{ ucfirst($diaryEntry->priority) }}
Status
{{ ucwords(str_replace('-', ' ', $diaryEntry->status)) }}
Category
{{ $diaryEntry->category?->name ?? 'Uncategorized' }}
Assigned To
{{ $diaryEntry->assignee?->name ?? 'Unassigned' }}
@if($diaryEntry->tags && $diaryEntry->tags->isNotEmpty())
Tags
{{ $diaryEntry->tags->pluck('name')->implode(', ') }}
@endif
@if($diaryEntry->duration || $diaryEntry->duration_minutes !== null)
Duration
{{ $diaryEntry->duration_formatted }}
@endif
{{-- Notes --}}
@if($diaryEntry->notes)
@endif
{{-- Sidebar --}}
{{-- Quick Actions --}}
{{-- Entry Metadata --}}
{{-- Quick Status Update --}}
{{-- /.show-layout --}}
{{-- /.diary-page --}}
@endsection