@extends('layouts.app') @section('title', 'Distribution Details') @section('page-header')
@endsection @section('content'){{ $document->document_title }}
{{ $document->document_code }}
{{ $distribution->documentVersion->version_number ?? 'N/A' }}
@php $distributionStatusColors = [ 'pending' => 'secondary', 'delivered' => 'info', 'acknowledged' => 'success', 'expired' => 'danger', 'cancelled' => 'dark' ]; @endphp {{ ucfirst($distribution->status) }}
{{ $distribution->department->department_name ?? 'N/A' }}
{{ $distribution->user->name ?? 'N/A' }}
{{ $distribution->distributed_at ? $distribution->distributed_at->format('Y-m-d H:i') : 'N/A' }}
@if($distribution->acknowledgement_required) Yes @else No @endif
| User | Acknowledged At | Status | Comments |
|---|---|---|---|
| {{ $acknowledgement->user->name ?? 'N/A' }} | {{ $acknowledgement->acknowledged_at ? $acknowledgement->acknowledged_at->format('Y-m-d H:i') : 'N/A' }} | {{ ucfirst($acknowledgement->status) }} | {{ $acknowledgement->comments ?? '-' }} |
No acknowledgements yet
@if($distribution->acknowledgement_required && $distribution->status == 'delivered') Acknowledge Document @endif