@extends('layouts.app') @php use App\Support\AgeingBucket; use App\Support\Format; $editing = $proposal->exists; $action = $editing ? route('proposals.update', $proposal) : route('proposals.store'); $value = fn (string $field, $fallback = null) => old($field, $proposal->{$field} ?? $fallback); $dateValue = fn (string $field) => old($field, $proposal->{$field}?->format('Y-m-d')); /* | Amounts are shown grouped to two decimals — 15,000.00. A number input | will not hold a separator, so these fields are text with a decimal | keypad; the separators come off again in the browser on submit and in | LeaseProposalRequest for anything posted without JavaScript. */ $amount = fn (string $field) => amount_value($value($field)); @endphp @section('title', $editing ? 'Edit proposal evaluation' : 'Evaluate a lease proposal') @section('heading', $editing ? 'Lease proposal — '.$proposal->outlet : 'Evaluation of a lease proposal') @section('subheading', 'Tenancy term, rental rate, percentage rent, deposits, renewal capping, location and landlord details') @section('actions') Cancel @endsection @section('content') @if ($errors->any())