@extends('layouts.master') @section('contain') {{-- --}}
S.No | Name | Description | Cover | Highlight | {{--Action | --}}{{ $num++ }} | {{ $hlight->user->full_name }} | {{----}} {{-- --}} {{-- --}} {{-- | --}}{{$hlight->name}} |
@if ($hlight->thumbnail != null)
@php
$extension = pathinfo($hlight->thumbnail, PATHINFO_EXTENSION);
$mediaUrl = env('MEDIA_URL') . $hlight->thumbnail;
@endphp
@if (in_array($extension, ['jpg', 'jpeg', 'png', 'gif','jfif','JPEG']))
@elseif (in_array($extension, ['mp4', 'webm', 'ogg']))
@else
Unsupported media type: {{ $extension }} @endif @elseif($hlight->story->thumbnail == null) @php $extension = pathinfo($hlight->story->image, PATHINFO_EXTENSION); $mediaUrl = env('MEDIA_URL') . $hlight->story->image; @endphp @if (in_array($extension, ['jpg', 'jpeg', 'png', 'gif','jfif','JPEG'])) @elseif (in_array($extension, ['mp4', 'webm', 'ogg'])) @elseUnsupported media type: {{ $extension }} @endif @else @php $extension = pathinfo($hlight->story->thumbnail, PATHINFO_EXTENSION); $mediaUrl = env('MEDIA_URL') . $hlight->story->thumbnail; @endphp @if (in_array($extension, ['jpg', 'jpeg', 'png', 'gif','jfif','JPEG'])) @elseif (in_array($extension, ['mp4', 'webm', 'ogg'])) @elseUnsupported media type: {{ $extension }} @endif @endif |
@if ($hlight->story->image != null)
@php
$extension = pathinfo($hlight->story->image, PATHINFO_EXTENSION);
$mediaUrl = env('MEDIA_URL') . $hlight->story->image;
@endphp
@if (in_array($extension, ['jpg', 'jpeg', 'png', 'gif','jfif','JPEG']))
@elseif (in_array($extension, ['mp4', 'webm', 'ogg']))
@else
Unsupported media type: {{ $extension }} @endif @else @endif |
{{-- {{$hlight->hlight_views_count}} | --}} @endforeach
---|