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

{{ $videoGallery->title }}

{{ $videoGallery->title_hi }}

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

{{ $videoGallery->order }}

@if($videoGallery->thumbnail_image) Thumbnail Image @else

No image available

@endif

{{ $videoGallery->type_desc }}

@if($videoGallery->type == 1)
@if ($videoGallery->file_name) @else

No file available

@endif
@elseif($videoGallery->type == 2)
@if ($videoGallery->youtube_embed_code)
{!! $videoGallery->youtube_embed_code !!}
@else

No YouTube Embed Code available

@endif
@elseif($videoGallery->type == 3)
@if ($videoGallery->url) View Video @else

No URL available

@endif
@else

No video available

@endif
@if ($videoGallery->description) {!! $videoGallery->description !!} @else No content available @endif
@if ($videoGallery->description_hi) {!! $videoGallery->description_hi !!} @else No content available @endif

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

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

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

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