@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')

{{ $showDeleted ? __('messages.global.my_deleted_reports') : __('messages.global.my_reports') }}

@if ($user->isIndividual) {{ __('messages.global.i_lost_my_animal') }} @endif @if ($showDeleted) {{ __('messages.global.show_my_current_reports') }} @else {{ __('messages.global.show_my_deleted_reports') }} @endif @if ($user->canImportReports()) {{ __('messages.global.import') }} @endif @if ($user->isOrganization) {{ __('messages.global.export') }} @endif
@if ($user->isOrganization) @endif @if (!$showDeleted) @endif @forelse($reports as $report) @if ($user->isOrganization) @endif @if (!$showDeleted) @endif @if ($showDeleted) @else @endif @empty @endforelse
{{ __('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')) @sortablelink('user_id', __('messages.global.author')) @sortablelink('state', __('messages.global.state')) {{ __('messages.global.actions') }}
{{ $report->createdAtDateTimeFormatted }} {{ $report->animalSpeciesFormatted }} {{ $report->typeFormatted }} @if ($report->hasExpired()) {{ __('messages.global.expired') }} @else {{ $report->expiresAtDateTimeFormatted }} @endif {{ $report->user->full_name }} {{ $report->stateFormatted }} {{ __('messages.global.extend_expiration') }} @if ($report->isWaiting()) {{ __('messages.global.suspend') }} @elseif ($report->isSuspended()) {{ __('messages.global.unsuspend') }} @endif
{{ __('messages.global.no_reports') }}
@endsection