{{-- header --}} @php($breadcrumbs = [ '到着荷物管理一覧'=>route('receipts.index', ['action'=>'back']), '到着荷物管理表示'=>null ])
@php($canStore = (App\Services\Logic\Assist::getCurrentRoutePermissions()->canStore)) @php($visible1 = ($canStore) ? '' : 'hidden') @php($visible2 = ($canStore && ($canApprove ?? false)) ? '' : 'hidden') @php($canEdit1 = ((!isset($approval)) || ($approval->status == App\Enums\ApprovalStatus::Requesting->value))) @php($canEdit2 = true) @php($purchases = $receipt->purchases ?? []) @php($notPaidValue = App\Enums\PaymentStatus::NotPaid->value) @foreach($purchases as $purchase) @if(($purchase->payment_status ?? $notPaidValue)!=$notPaidValue) @php($canEdit2 = false) @break @endif @endforeach @if($canEdit1 && $canEdit2) @endif @if((isset($approval)) && ($approval->status == App\Enums\ApprovalStatus::InApproval->value)) @endif
{{-- contents --}}
@csrf @include('user.receipts.partials.entry', ['mode'=>'show', 'details'=>$details]) {{-- modal --}} @include('user.receipts.partials.modal-confirm-approval')
{{-- script --}}