@each(notifications as n) @if(n.type === 'approve')
thumb
{{ t('notifications.system') }}
{{ t('notifications.upload_approved').replace('{id}', n.item_id) }}
{{ new Date(n.created_at).toLocaleString() }}
@elseif(n.type === 'admin_pending')
thumb
{{ t('notifications.admin') }}
{{ t('notifications.upload_pending').replace('{id}', n.item_id) }}
{{ new Date(n.created_at).toLocaleString() }}
@elseif(n.type === 'report')
thumb
{{ t('notifications.moderation') }}
{{ t('notifications.new_report').replace('{id}', n.reference_id) }}
{{ new Date(n.created_at).toLocaleString() }}
@elseif(n.type === 'deny')
thumb
{{ t('notifications.system') }}
{{ t('notifications.upload_denied').replace('{id}', n.item_id) }}
Reason: {{ n.reason }}
{{ new Date(n.created_at).toLocaleString() }}
@elseif(n.type === 'item_deleted')
thumb
{{ t('notifications.moderation') }}
{{ t('notifications.upload_deleted').replace('{id}', n.item_id) }}
Reason: {{ n.reason }}
{{ new Date(n.created_at).toLocaleString() }}
@elseif(n.type === 'upload_comment')
thumbnail
{{ t('notifications.new_comments') }}
{{ t('notifications.on_your_upload').replace('{id}', n.item_id) }}
{{ new Date(n.created_at).toLocaleString() }}
@elseif(n.type === 'upload_success')
thumb
{{ t('notifications.system') }}
{{ t('notifications.upload_success') }}
{{ new Date(n.created_at).toLocaleString() }}
@elseif(n.type === 'upload_error') @if(n.item_id)
thumb
@endif
{{ t('notifications.system') }}
{{ t('notifications.upload_error') }} @if(n.data && n.data.msg)
Reason: {{ n.data.msg }}
@endif @if(n.data && n.data.url)
URL: {{ n.data.url }}
@endif
{{ new Date(n.created_at).toLocaleString() }}
@else @if(n.item_id)
thumb
@endif
{!! n.from_user !!}
@if(n.type === 'comment_reply') {{ t('notifications.replied').replace('{id}', n.item_id) }} @elseif(n.type === 'subscription') {{ t('notifications.subscribed').replace('{id}', n.item_id) }} @elseif(n.type === 'mention') {{ t('notifications.mentioned').replace('{id}', n.item_id) }} @endif
{{ new Date(n.created_at).toLocaleString() }}
@endif @endeach