@extends("admin/layout") @section("content")
Premium Demo
@if (session('successMessage') || session('errorMessage'))
@if (session('successMessage'))
{{ session('successMessage') }}
@endif @if (session('errorMessage'))
{{ session('errorMessage') }}
@endif
@endif

Photo

@if($photoPending->isEmpty())
There are no photo pending pending
@else @foreach($photoPending as $photo) @endforeach
id title image user name category name upload date privacy_status update status action
{{ $photo->id }} {{ $photo->title }} @if($photo->image_url) @endif {{ $photo->user->username }} {{ $photo->category->category_name }} {{ date('d-m-Y', strtotime($photo->upload_date)) }} {{ $photo->privacy_status == 0 ? 'Public' : 'Private' }}
@csrf
@csrf
@if ($photoPending->lastPage() > 1) 1 @if ($photoPending->currentPage() > 3) ... @endif @for ($i = max(2, $photoPending->currentPage() - 1); $i <= min($photoPending->currentPage() + 1, $photoPending->lastPage() - 1); $i++) {{ $i }} @endfor @if ($photoPending->currentPage() < $photoPending->lastPage() - 2) ... @endif {{ $photoPending->lastPage() }} @else 1 @endif
Page {{ $photoPending->currentPage() }} of {{ $photoPending->lastPage() }}
@endif
@endsection