{{-- 'phone','accepted','paid','unpaid','pay_later','exempt','rejected' --}} @if($contract->payment_type == 'phone') @elseif($contract->is_accepted && !$contract->status && !$contract->pay_later && !$contract->is_cancelled)
@csrf
@endif @if($contract->status && $contract->is_accepted) @endif @php $invalid = ['phone', 'accepted', 'rejected', 'unpaid']; @endphp @if(!in_array($contract->payment_type, $invalid) && acceptedNotCancelled($accepted, $cancelled)) @if(is_valid($contract)) @endif @endif @if(is_valid($contract) && is_null($contract->is_cancelled) && is_null($contract->reservation_id))
@csrf @method('PUT')
@endif @if($contract->is_cancelled) @endif