@extends('layouts.app') @php use App\Models\Permission; use App\Models\RecordRetrieval; use App\Support\Format; $canManage = auth()->user()->hasPermission(Permission::RECORD_MANAGE); $out = $file->retrievals->firstWhere('returned_on', null); $missing = $file->missingDocuments(); @endphp @section('title', 'Agreement file — '.$file->showroom) @section('heading', 'Agreement file — '.$file->showroom) @section('subheading', $file->label.' · cabinet '.$file->cabinet.' · '.$file->classification) @section('actions') @if ($canManage) Edit @endif Retrieval log All files @endsection @section('content') @if ($errors->any())
| Document | Filed | Remarks | |
|---|---|---|---|
| @if ($document['filed']) @else @endif | ({{ $document['letter'] }}) {{ $document['title'] }} @if ($document['optional']) — if any @endif | {{ Format::date($document['filed_on']) }} | {{ $document['remarks'] ?: '—' }} |
| Out | Retrieved by | What for | Approved by | Back | |
|---|---|---|---|---|---|
| {{ Format::date($retrieval->retrieved_on) }} | {{ $retrieval->retrieved_by_name }} | {{ $retrieval->purpose ?: '—' }} |
{{ $retrieval->approved_by_name ?: '—' }}
{{ $retrieval->approval_mode_label }}
|
@if ($retrieval->returned_on)
{{ Format::date($retrieval->returned_on) }}
{{ $retrieval->received_by_name ?: '—' }}
@else
{{ $retrieval->statusLabel() }}
@endif
|
@if ($canManage) @endif |