Complaint
@method('POST') @csrf
Complaint
{{--
--}}
{{--
--}}
@foreach ($complaintTypes as $complaintCategory)
@endforeach
Complaint Made By
Property Owner Information
{{--
--}}
Complaint Details
Show     Entries
@foreach ($complaints as $cmp) @endforeach
Complaint Number Type Location Date Assigned To Reinspection Date Status Action
{{ $cmp->complaintNumber }} {{ $cmp->complaintType ? $cmp->complaintType->name : '' }} {{ $cmp->complaintLocation }} {{ $cmp->complainantDate ? date(config('site.dateFormat'), strtotime($cmp->complainantDate)) : '' }} {{ $cmp->assignedBy ? $cmp->assignedBy->first_name : '' }} {{ $cmp->assignedBy ? $cmp->assignedBy->last_name : ''}} {{ $cmp->reinspection_date ? date(config('site.dateFormat'), strtotime($cmp->reinspection_date)) : '' }} @if ($cmp->status == 1) Intake @elseif ($cmp->status == 2) Under Investigation {{-- @elseif ($cmp->status == 3) Under Inspection --}} @else Closed @endif @can('delete-complaint') @endcan @if ($cmp->priority==0) @elseif ($cmp->priority==1) @endif
Showing @if ($complaints->onFirstPage() && $complaints->total() > 0) 1 @elseif($complaints->onFirstPage() && $complaints->total() == 0) 0 @else {{ $complaints->perPage() * ($complaints->currentPage() - 1) + 1 }} @endif to @if ($complaints->perPage() * $complaints->currentPage() > $complaints->total()) {{ $complaints->total() }} @else {{ $complaints->perPage() * $complaints->currentPage() }} @endif of {{ $complaints->total() }} entries
{{ $complaints->withQueryString()->links('vendor.pagination.custom') }}
{{-- --}}