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

Rekod

{{ $jumlahAduan }}

Jumlah Aduan

{{ $aduanBaru }}

Aduan Baru

{{ $serahTugas }}

Serah Tugas

{{ $aduanSelesai }}

Aduan Selesai

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

Laporan Aduan

@if (auth()->user()->role === 'Pekerja') +Tambah Aduan

@endif
@if (auth()->user()->role === 'Tuan_Kebun') @endif @foreach ($damages as $damage) @if (auth()->user()->role === 'Tuan_Kebun') @endif @endforeach
Bil. Kebun Jenis Aduan Tarikh AduanPengaduStatus Tindakan
{{ $loop->index + 1 }} {{ $damage->plantation->farm->name }} @if ($damage->damage_category == 'Penyakit') Penyakit @elseif ($damage->damage_category == 'Haiwan Perosak') Haiwan Perosak @elseif ($damage->damage_category == 'Lain-lain') Lain-lain @endif {{ $damage->created_at->format('d F Y') }}{{ $damage->worker->name }} @if ($damage->status == 'Baru') Baru @elseif ($damage->status == 'Serah Tugas') Serah Tugas @elseif ($damage->status == 'Dalam Kerja') Dalam Kerja @elseif ($damage->status == 'Selesai') Selesai @endif @if (auth()->user()->role === 'Tuan_Kebun' && $damage->status == 'Baru') @endif @if (auth()->user()->role === 'Pekerja' && $damage->status == 'Serah Tugas') @endif @if (auth()->user()->role === 'Pekerja' && $damage->status == 'Dalam Kerja') @endif
@endsection