@extends('home.home-template') @section('css') @endsection @section('content')

{{strtoupper($laporan->judul)}}

{{type($laporan->type_id)}} Kategori {{$laporan->kategori->kategori ?? ''}}
Nomor Laporan {{$laporan->nomor_laporan}} @if(Auth::guard('admin')->check())
Cek Laporan @elseif(Auth::guard('irban')->check()) @if (Auth::guard('irban')->user()->id == $laporan->irban_id)
Cek Laporan @endif @endif
User @if ($laporan->user_id != null && $laporan->sifat_id ==3) {{$laporan->user->nama}} @elseif ($laporan->sifat_id == 1) Rahasia @elseif ($laporan->sifat_id == 2) Anonim @else Dikirimkan Secara Public Tanpa Daftar @endif
Jenis{{jenis($laporan->jenis_id)}}
Tanggal Kejadian{{$laporan->tanggal_kejadian}}
Tempat Kejadian{{$laporan->tempat_kejadian}}
Tanggal {{type($laporan->type_id)}}{{tanggal_waktu($laporan->created_at)}}

{!!$laporan->isi!!}

@forelse ($laporan->lampiran()->get() as $lampiran)
@empty @endforelse @if (Auth::guard('user')->check()) @if (Auth::guard('user')->user()->id == $laporan->user_id && $laporan->status_id != 9 && $laporan->status_id != 10)
Tutup Laporan @endif @endif
@if (Auth::check()) @if (in_array($laporan->status_id, App\Models\Status::LAPORANOPENKOMENTAR))
@csrf
@else @endif @else Silahkan Login Terlbih Dahulu Login @endif


@foreach ($komentars as $komentar)
{{$komentar->user->nama ?? 'Anonim'}}
{{tanggal_waktu($komentar->created_at)}}

{{$komentar->komentar}}

@if ($komentar->file != null)
Lampiran
@endif

@endforeach
@foreach ($logs as $log)

{{$log->status->name}}

{!!$log->log!!}

@foreach ($log->lampiran()->get() as $lLog) {!!$log->log!!} @endforeach {{hari_tanggal($log->created_at, false)}}
@endforeach
@endsection @section('script') @if (Auth::check()) @else @endif @endsection