@extends('layouts.app') @section('title', __('app.complaint.edit.title') . ' - PMMS') @section('content')
{!! __('app.complaint.edit.category_hint') !!}
@if ($complaint->workOrders->isEmpty()){!! __('app.complaint.edit.no_work_orders') !!}
@else| {{ __('app.complaint.edit.table.no') }} | {{ __('app.complaint.edit.table.title') }} | {{ __('app.complaint.edit.table.location') }} | {{ __('app.complaint.edit.table.attachments') }} | {{ __('app.complaint.edit.table.actions') }} |
|---|---|---|---|---|
| {{ $i + 1 }} | {{ $workOrder->title }} | {{ $workOrder->location ?? '-' }} | @if ($workOrder->attachments->isEmpty()) {{ __('app.complaint.edit.no_attachment_badge') }} @else {{ __('app.complaint.edit.attachment_count_badge', ['count' => $workOrder->attachments->count()]) }} @endif | {{ __('app.complaint.edit.row_edit') }} |
{{ __('app.complaint.edit.submit_need_wo') }}
@elseif ($workOrdersWithoutAttachment->isNotEmpty()){{ __('app.complaint.edit.submit_missing_attachment') }} {{ $workOrdersWithoutAttachment->pluck('title')->implode(', ') }}.
@else{{ __('app.complaint.edit.submit_ready', ['count' => $complaint->workOrders->count()]) }}
@endif