@extends('layouts.app') @section('title', __('app.inspection.create.title') . ' - PMMS') @section('content')

{{ __('app.inspection.create.heading') }}

{!! __('app.work_order.wo_label', ['no' => $workOrder->work_order_no, 'title' => $workOrder->title]) !!}

@php // Fasa 2 Langkah 35: aduan unit kosong tiada Penyewa untuk dihubungi. $contactConfirmed = $workOrder->complaint->is_vacant_unit || $workOrder->complaint->hasSuccessfulContactAttempt(); @endphp @unless ($contactConfirmed) {{-- Fasa 2 Langkah 30 (PMMS_Flowchart.html, Carta 6a/6b) - inspection tidak boleh dijadualkan sebelum Penyewa berjaya dihubungi. --}} @php $complaintLink = ''.__('app.inspection.create.contact_warning_link_text').''; @endphp
{!! __('app.inspection.create.contact_warning', ['link' => $complaintLink]) !!}
@endunless
@csrf
@if ($workOrder->category) {{ __('app.inspection.create.hint_matched', ['category' => $workOrder->category->name]) }} @else {{ __('app.inspection.create.hint_unmatched') }} @endif
{{ __('app.inspection.create.cancel') }}
@endsection