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

{{ __('Module details') }} {{ __('Edit') }}

Name {{ $module->name }}

Description {{ $module->description ? $module->description : '-' }}

Georgia Standards of Excellence {{ $module->short ? $module->short : '-' }}

Funding Partner {{ $module->partner ? $module->partner : '-' }}

Topics @foreach (explode(',', $module->get_params('topics', 'name')) as $item) {{ $item }} @endforeach

Subtopics @foreach (explode(',', $module->get_params('subtopics', 'name')) as $item) {{ $item }} @endforeach

Formats @foreach (explode(',', $module->get_params('formats', 'name')) as $item) {{ $item }} @endforeach

Icon

Icon large

@if ($module->background)

Background

@elseif (!$module->background && $module->videos->count() > 1)

Background For more than 1 video, the background is needed and all the videos need thumb. Edit the module, add the background and the missing thumbs. {{ __('Edit module') }}

@endif

Featured {{ $module->featured > 0 ? 'Yes' : 'No' }}

@if ($module->type === 'videos')

{{ __('Media details') }} {{ __('Add video') }}

@foreach($module->videos as $video) @if (!empty($video->url)) @php $array = explode('/', $video->url); $video_name = end($array); @endphp @endif @endforeach
{{ __('Order') }} {{ __('Thumb') }} {{ __('Name') }} {{ __('Mp4') }} {{ __('Hls') }} {{ __('Actions') }}
@if (empty($video->hls)) {{ $video_name }} @else {{ $video_name }}
{{ __('Click link to edit or add hotspots') }} @endif
@if (empty($video->hls)) {{ __('Converting to hls') }} @else @endif
@endif @endsection