@php use Modules\Common\Entities\Report; $typeColors = [ Report::TYPE_FOUND => 'text-success', Report::TYPE_SEEN => 'text-info', Report::TYPE_LOST => 'text-danger', ]; @endphp @extends('user::_layouts.authenticated.layout') @section('title', $showDeleted ? __('messages.global.my_deleted_reports') : __('messages.global.my_reports')) @section('content')
| {{ __('messages.global.picture') }} | @sortablelink('created_at', __('messages.global.date')) | @sortablelink('animal_species', __('messages.global.species')) | @sortablelink('type', __('messages.global.report_type')) | @sortablelink('expires_at', __('messages.global.expires_at')) | @if ($user->isOrganization)@sortablelink('user_id', __('messages.global.author')) | @endif @if (!$showDeleted)@sortablelink('state', __('messages.global.state')) | @endif{{ __('messages.global.actions') }} | @forelse($reports as $report)|
|---|---|---|---|---|---|---|---|---|
|
|
{{ $report->createdAtDateTimeFormatted }} | {{ $report->animalSpeciesFormatted }} | {{ $report->typeFormatted }} | @if ($report->hasExpired()) {{ __('messages.global.expired') }} @else {{ $report->expiresAtDateTimeFormatted }} @endif | @if ($user->isOrganization){{ $report->user->full_name }} | @endif @if (!$showDeleted){{ $report->stateFormatted }} | @endif @if ($showDeleted)@else | {{ __('messages.global.extend_expiration') }} @if ($report->isWaiting()) {{ __('messages.global.suspend') }} @elseif ($report->isSuspended()) {{ __('messages.global.unsuspend') }} @endif | @endif
| {{ __('messages.global.no_reports') }} | ||||||||