{{ $mode === 'create' ? 'Add Repair' : 'Edit Repair' }}

Back to list
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @if($mode === 'edit') @method('PUT') @endif
Personal Information
Item Information
Problem Description
Service Details
@php $statusVal = old('status', $repair->status ?? 0); @endphp
Payment Details
@if($mode === 'edit' && $repair->payments->count())
Existing Payments
@foreach($repair->payments as $payment) @endforeach
Date Type Remark Amount Actions
{{ optional($payment->pay_date)->format('Y-m-d') }} @php $types=[0=>'Cash',1=>'Card',2=>'Bank']; @endphp {{ $types[$payment->pay_type] ?? 'Cash' }} {{ $payment->remark }} {{ number_format($payment->amount, 2) }}
@endif
Cancel {{ $mode === 'create' ? 'Create job' : 'Save changes' }}
{{-- Payment delete form (outside main form to avoid nesting issues) --}} @if($mode === 'edit') @endif