@extends('layouts.app') @php use App\Models\Permission; use App\Models\ProposalForm; use App\Support\Format; @endphp @section('title', 'Forms — '.$proposal->outlet) @section('heading', 'Forms — '.$proposal->outlet) @section('subheading', 'PDFs kept against this proposal as its reference file') @section('actions') Back to the proposal All proposals @endsection @section('content')
Proposal
{{ $proposal->outlet }}
Reference
{{ $proposal->reference_no ?: '—' }}
Landlord
{{ $proposal->landlord?->name ?: '—' }}
Dated
{{ Format::date($proposal->proposal_date) }}
Status
{{ $proposal->status_label }}
@canany([Permission::PROPOSAL_CREATE, Permission::PROPOSAL_UPDATE])
@csrf
Upload a form
PDF only, up to 20 MB.
@error('file')
{{ $message }}
@enderror
@endcanany
{{ $forms->count() }} {{ \Illuminate\Support\Str::plural('form', $forms->count()) }} on file
@forelse ($forms as $form) @empty @endforelse
Document Which form Size Filed Remarks
{{ $form->display_name }} @if ($form->title)
{{ $form->original_name }}
@endif @unless ($form->exists())
The stored file is missing.
@endunless
{{ $form->type_label }} {{ $form->display_size }} {{ Format::date($form->created_at) }}
{{ $form->uploader?->name ?: '—' }}
{{ $form->remarks ?: '—' }} @can(Permission::PROPOSAL_DELETE)
@csrf @method('DELETE')
@endcan
No forms have been filed against this proposal yet.
@endsection