@php use App\Models\AssetVerification; $statusMeta = [ AssetVerification::OPEN => ['label' => __('Being counted'), 'color' => 'sky'], AssetVerification::SUBMITTED => ['label' => __('Awaiting approval'), 'color' => 'amber'], AssetVerification::APPROVED => ['label' => __('Approved'), 'color' => 'emerald'], AssetVerification::RETURNED => ['label' => __('Sent back'), 'color' => 'rose'], ]; // `on` is written out in full rather than composed from the colour: Tailwind // only ships classes it can see as literal strings in the source. $resultMeta = [ AssetVerification::PRESENT => [ 'label' => __('Present'), 'color' => 'emerald', 'icon' => 'check-circle', 'on' => 'border-emerald-300 bg-emerald-50 text-emerald-700 ring-2 ring-emerald-100', ], AssetVerification::DAMAGED => [ 'label' => __('Damaged'), 'color' => 'amber', 'icon' => 'wrench-screwdriver', 'on' => 'border-amber-300 bg-amber-50 text-amber-700 ring-2 ring-amber-100', ], AssetVerification::MISSING => [ 'label' => __('Missing'), 'color' => 'rose', 'icon' => 'exclamation-triangle', 'on' => 'border-rose-300 bg-rose-50 text-rose-700 ring-2 ring-rose-100', ], ]; $tonePill = [ 'up' => 'bg-emerald-50 text-emerald-700', 'down' => 'bg-rose-50 text-rose-700', 'muted' => 'bg-slate-100 text-slate-500', ]; $countable = $sheet?->isCountable() ?? false; $daysLeft = $due->daysRemaining(); @endphp
@if ($sheet->isApproved()) {{ __('Approved by :who on :when.', ['who' => $sheet->reviewer?->name ?? __('a director'), 'when' => $sheet->reviewed_at?->timezone(config('app.display_timezone'))->format('j M Y')]) }} @elseif ($sheet->isAwaitingApproval()) {{ __('Sent up by :who on :when. Nothing is written to the register until a director approves it.', ['who' => $sheet->submitter?->name ?? __('production'), 'when' => $sheet->submitted_at?->timezone(config('app.display_timezone'))->format('j M Y')]) }} @elseif ($daysLeft >= 0) {{ trans_choice('{0} Due today.|{1} :count day left to finish and get it signed off.|[2,*] :count days left to finish and get it signed off.', $daysLeft, ['count' => $daysLeft]) }} @else {{ __('Overdue by :days day(s). :month has not been closed off against what is actually in the building.', ['days' => abs($daysLeft), 'month' => $sheet->periodLabel()]) }} @endif
{{ $sheet->review_note }}
{{ __('Note from the count') }}
{{ $sheet->notes }}
{{ $m['label'] }}
{{ $m['value'] }}
{{ $m['sub'] }}| {{ __('Asset') }} | {{ __('Register says') }} | {{ __('Found') }} | {{ __('Answer') }} |
|---|---|---|---|
|
{{ $line->asset?->name ?? __('(removed)') }} {{ collect([$line->asset?->asset_tag, $line->asset?->serial_number, $line->asset?->category])->filter()->join(' · ') ?: '—' }} |
{{ $line->expected_location ?: __('No location recorded') }} @if ($line->expected_condition) · {{ $line->expected_condition }} @endif |
@if ($line->isChecked())
@if ($line->hasMoved())
@else
{{ __('Not checked yet') }}
@endif
{{ $line->location_found }} @endif @if ($line->condition_found && $line->condition_found !== $line->expected_condition){{ __('Condition: :c', ['c' => $line->condition_found]) }} @endif @if ($line->note){{ $line->note }} @endif{{ __('by :who', ['who' => $line->checker?->name ?? '—']) }} |
@if ($countable && $canCount)
@foreach ($resultMeta as $key => $meta)
@endforeach
@elseif ($line->isChecked())
|
|
|
|||
{{ __('Every month the register was checked against the building.') }}
| {{ __('Month') }} | {{ __('Status') }} | {{ __('Present') }} | {{ __('Damaged') }} | {{ __('Missing') }} | {{ __('Counted by') }} | {{ __('Approved by') }} |
|---|---|---|---|---|---|---|
|
|
{{ $past->present_count }} | {{ $past->damaged_count }} | {{ $past->missing_count }} | {{ $past->submitter?->name ?? '—' }} | {{ $past->reviewer?->name ?? '—' }} |
{{ __('Only fill in what is different from the register. Saving this counts the item as present unless you have already flagged it.') }}
{{ __('All :total item(s) have been answered: :present present, :damaged damaged, :missing missing. A director will check it over and sign it off.', [ 'total' => $sheet->lineCount(), 'present' => $sheet->resultCount(AssetVerification::PRESENT), 'damaged' => $sheet->resultCount(AssetVerification::DAMAGED), 'missing' => $sheet->resultCount(AssetVerification::MISSING), ]) }}
{{ __(':who checked all :total item(s) — :present present, :damaged damaged, :missing missing.', [ 'who' => $sheet->submitter?->name ?? __('Production'), 'total' => $sheet->lineCount(), 'present' => $sheet->resultCount(AssetVerification::PRESENT), 'damaged' => $sheet->resultCount(AssetVerification::DAMAGED), 'missing' => $sheet->resultCount(AssetVerification::MISSING), ]) }}
{{ __('Approving stamps every item as verified today and applies the locations and conditions they corrected. Sending it back changes nothing and reopens the sheet.') }}