@extends("admin/layout") @section("content") @if (session('successMessage') || session('errorMessage'))
Reports
| Photo id | Image | Reporter name | Violator name | Report reason | Report date | Action taken | ||
|---|---|---|---|---|---|---|---|---|
| {{ $report->photo_id }} |
@if($report->photo && $report->photo->image_url)
|
{{ $report->reporter->username }} | {{ $report->violator->username }} | {{ $report->report_reason }} | {{ date('d-m-Y', strtotime($report->report_date)) }} | @if ($report->action_taken == 'none') {{ $report->action_taken }} @elseif ($report->action_taken == 'removed') {{ $report->action_taken }} @elseif($report->action_taken == 'no violation') {{ $report->action_taken }} @else {{ $report->action_taken }} @endif |