@extends('layouts.app') @section('title', __('ui.community_photo_my').' — Coaster World') @section('content')
{{ __('ui.community_photo_kicker') }}

{{ __('ui.community_photo_my') }}

{{ __('ui.community_photo_my_intro') }}

@if(session('community_photo_status'))
{{ session('community_photo_status') === 'deleted' ? __('ui.community_photo_deleted') : __('ui.community_photo_submitted') }}
@endif @if($cards->isEmpty())
📷
{{ __('ui.community_photo_empty_title') }}

{{ __('ui.community_photo_empty_text') }}

@else
@foreach($cards as $card) @php($asset = $card['asset'])
@if($card['url']) {{ $card['caption'] ?: $card['entity_name'] }} @else
📷
@endif {{ __('ui.community_photo_status_'.$asset->status) }}
{{ $asset->created_at?->format('d/m/Y H:i') }} @if($card['entity_url']) {{ $card['entity_name'] }} @else {{ $card['entity_name'] }} @endif
@if($card['caption'])

{{ $card['caption'] }}

@endif @if($card['reason'] && in_array($asset->status, ['rejected','hidden'], true))
{{ __('ui.community_photo_reason') }}{{ $card['reason'] }}
@endif @if($asset->status === 'ready' && $asset->published_at) {{ __('ui.community_photo_open') }} @endif
@csrf @method('DELETE')
@endforeach
{{ $photos->links() }}
@endif
@endsection