@extends('layouts.app') @php use App\Models\Permission; use App\Support\Format; $canManage = auth()->user()->hasPermission(Permission::RECORD_MANAGE); @endphp @section('title', 'Agreement files') @section('heading', 'Showroom Agreement Files') @section('subheading', 'Clause 10.2 — the hardcopy files, and where each one is') @section('actions') Retrieval log @if ($canManage) Open a file @endif @endsection @section('content')
@if (request()->hasAny(['q', 'show'])) Clear @endif
@if ($outCount > 0 && $filter !== 'out')
{{ $outCount }} {{ \Illuminate\Support\Str::plural('file', $outCount) }} {{ $outCount === 1 ? 'is' : 'are' }} out of the cabinet. See which.
@endif
Files {{ $files->total() }} in all
@if ($files->isEmpty())
No agreement file matches. Clause 10.2 opens one as the approved PRF is photocopied.
@else
@foreach ($files as $file) @endforeach
Showroom Landlord Cabinet Where it is Kept until
{{ $file->showroom }} @if ($file->lot_no)
Lot {{ $file->lot_no }}
@endif
{{ $file->landlord ?: '—' }} {{ $file->cabinet }} {{ $file->classification }} {{ $file->location_label }} @if ($file->currentRetrieval)
{{ $file->currentRetrieval->retrieved_by_name }}, since {{ Format::date($file->currentRetrieval->retrieved_on) }}
@endif
@if ($file->disposed_on) Disposed {{ Format::date($file->disposed_on) }} @elseif ($file->retain_until) {{ Format::date($file->retain_until) }} @if ($file->isPastRetention()) due a clear-out @endif @else while the tenancy runs @endif
@endif
@if ($files->hasPages())
{{ $files->links() }}
@endif @endsection