@extends('admin/layout')
@section('content')
@if (session('successMessage') || session('errorMessage'))
@if (session('successMessage'))
{{ session('successMessage') }}
@endif
@if (session('errorMessage'))
{{ session('errorMessage') }}
@endif
@endif
@if($photos->isEmpty())
No photos found
@else
| Title |
Image |
Location |
Category |
Upload Date |
Privacy |
Actions |
@foreach($photos as $photo)
| {{ $photo->title }} |
|
{{ $photo->location }} |
{{ $photo->category->category_name ?? 'Uncategorized' }} |
{{ date('d-m-Y', strtotime($photo->upload_date)) }} |
{{ $photo->privacy_status == 0 ? 'Public' : 'Private' }}
|
|
@endforeach
@endif
×
@endsection