@extends('student.layouts.app') @section('titlePage', $data->title) @section('content') @php $brand = $dataConfigs['brand'] ?? 'default'; @endphp @php $view = is_null($viewed) ? 0 : $viewed; @endphp
image
Authors:

{{ $data->author }}

Created at:

{{ $data->created_at->format('d M Y, H:i:s') }}

Subject:

{{ $data->subject->subject_title }}

Topic:

{{ $data->topic->topic_name }}

@php $file_ext=explode('.', $data->content_file); $ext =array('gif', 'png', 'jpg','GIF', 'PNG', 'JPG'); @endphp @if(in_array(end($file_ext), $ext)) View @elseif($data->content_type === 'file') View @elseif($data->content_type == 'video' || $data->content_type == 'audio' || $data->content_type == 'audio_url' || $data->content_type == 'video_url') @else @endif
{!! $data->description !!}
@if($data->content_type == 'video' || $data->content_type == 'audio' || $data->content_type == 'audio_url' || $data->content_type == 'video_url') @endif @if (in_array(end($file_ext), $ext)) @elseif ($data->content_type === 'file') @if (pathinfo($data->content_file, PATHINFO_EXTENSION) === 'pdf') @endif @endif @endsection @section('script') @include('student.courses.inc.script-media-html',['data' => $data]) @endsection