@extends('layouts.app_layout') @section('content')

{{ $photoGallery->title }}

{{ $photoGallery->title_hi }}

{{ \Carbon\Carbon::parse($photoGallery->date)->format('d-m-Y') }}

{{ $photoGallery->order }}

@if($photoGallery->featured_image) Featured Image @else

No image available

@endif
@if ($photoGallery->description) {!! $photoGallery->description !!} @else No content available @endif
@if ($photoGallery->description_hi) {!! $photoGallery->description_hi !!} @else No content available @endif
@forelse ($photoGallery->images as $key => $file) @empty @endforelse
S.No. Image Title
{{ $key + 1 }} @if ($file->file_name) @endif {{ $file->title }}
{{ $file->title_hi }}
No files available.

@if ($photoGallery->is_approved == 1) Approved @elseif ($photoGallery->is_approved == 2) Rejected @else Pending @endif

{!! $photoGallery->is_published ? 'Published' : 'Not Published' !!}

{{ $photoGallery->remarks ? $photoGallery->remarks :'No remarks available' }}

@can('approve photo gallery')
Approval Form
@csrf
@endcan @can('publish photo gallery')
Publish Form
@csrf
@endcan
@endsection @section('pages-scripts') @can('approve photo gallery') @endcan @can('publish photo gallery') @endcan @endsection