@extends('layouts.app') @php use App\Models\AgreementFile; $saved = $file->exists; $value = fn (string $field, $fallback = null) => old($field, $file->{$field} ?? $fallback); $dateValue = fn (string $field) => old($field, $file->{$field}?->format('Y-m-d')); $sequence = $file->documentSequence(); @endphp @section('title', ($saved ? 'Edit file — '.$file->showroom : 'Open an agreement file')) @section('heading', $saved ? 'Agreement file — '.$file->showroom : 'Open a Showroom Agreement File') @section('subheading', 'Clause 10.2 — labelled with the showroom and its lot number') @section('actions') Cancel @endsection @section('content') @if ($errors->any())
Please check the {{ $errors->count() }} highlighted {{ \Illuminate\Support\Str::plural('entry', $errors->count()) }} below.
@endif @if (! $saved && $proposal)
Drafted from the proposal for {{ $proposal->outlet }} — the showroom, the lot and the landlord taken from it.
@endif
@csrf @if ($saved) @method('PUT') @endif @if (! $saved && $proposal) @endif {{-- ------------------------------------------------------------ --}} {{-- The label on the spine --}} {{-- ------------------------------------------------------------ --}}
The label
@error('reference')
{{ $message }}
@enderror
@error('showroom')
{{ $message }}
@enderror
@error('lot_no')
{{ $message }}
@enderror
@error('landlord')
{{ $message }}
@enderror
@error('region_code')
{{ $message }}
@enderror
{{-- ------------------------------------------------------------ --}} {{-- Where it is kept, and for how long --}} {{-- ------------------------------------------------------------ --}}
Kept clauses 10.3 and 10.3.3
@error('cabinet')
{{ $message }}
@enderror
@error('classification')
{{ $message }}
@enderror
@error('opened_on')
{{ $message }}
@enderror
@error('terminated_on')
{{ $message }}
@enderror
@error('retain_until')
{{ $message }}
@enderror
Left blank it takes seven years from the termination, per clause 10.3.3.
@error('disposed_on')
{{ $message }}
@enderror
{{-- ------------------------------------------------------------ --}} {{-- What is in it, clause 10.2.1 --}} {{-- ------------------------------------------------------------ --}}
What is in it clause 10.2.1 — filed (a) to (h), bottom to top
@foreach ($sequence as $document) @php($key = $document['key'])
where('filed', true)->pluck('key')->all()))->contains($key))>
@endforeach
Remarks
@error('remarks')
{{ $message }}
@enderror
Cancel
@endsection