@extends('layouts.base') @section('content')

Pengurusan Aduan

Maklumat Aduan

{{ $damage->damage_category }}

Tarikh Hantar: {{ $damage->created_at->format('d F Y') }}

@if ($damage->status == 'Baru')

Aduan Baru

@elseif ($damage->status == 'Serah Tugas')

Serah Tugas

@elseif ($damage->status == 'Dalam Kerja')

Dalam Kerja

@elseif ($damage->status == 'Selesai')

Selesai

@endif
Penerangan:

{{ $damage->damage_description }}

Lokasi:

{{ $damage->plantation->farm->name }}

Jenis Kebun:

{{ $damage->plantation->farm->category->name }} {{ $damage->plantation->plantDetail->plant_type }}

Pengadu:

{{ $damage->worker->name }}

@if ($damage->status == 'Serah Tugas' || $damage->status == 'Dalam Kerja' ||$damage->status == 'Selesai' )

Maklumat Tugas

@if ($damage->solution_category == 'Jumpa Tuan Kebun') @endif @if ($damage->solution_category == 'Meracun' && $damage->status == 'Selesai') @endif @if ($damage->solution_category == 'Jumpa Tuan Kebun') @endif @if ($damage->solution_category == 'Meracun' && $damage->status == 'Selesai') @endif
PenyelesaianKeterangan PenyelesaianTarikh TugasanBukti Penyelesaian
@if ($damage->solution_category == 'Meracun')
 
{{ $damage->solution_category }}
@elseif ($damage->solution_category == 'Jumpa Tuan Kebun')
 
{{ $damage->solution_category }}
@endif
{{ $damage->solution_description ?? 'Tiada Rekod' }}
{{ \Carbon\Carbon::parse($damage->assign_date)->format('d F Y') }}


@if ($damage->solution_category == 'Meracun')

Maklumat Racun

Nama Quantiti Keterangan Gambar Baja
{{ $damage->pestControl->pestControlDetail->pest_name ?? 'Tiada Racun Terpilih' }} {{ $damage->pestControl->amount }} {{ $damage->pestControl->amount_type }} {{ $damage->pestControl->description }}

@endif @endif
@if (auth()->user()->role === 'Tuan_Kebun') @elseif (auth()->user()->role === 'Pekerja') @endif
@endsection