@extends('layouts.base-refonte', ["fixedHeader" => true]) @section('title','Modification de Média') @section('css') @if (mediaType($media['ext'], "video")) @endif @endsection @section('content')
{{-- alert with content --}} @include('partials.alert') {{-- TODO : SHOULD BE REMOVED --}} @php if( $errors->any()) { dd($errors->all()); } @endphp @include('partials.alert', [ "showAlert" => $errors->any(), "success" => false, "msg" => "Remplissez convenablement le formulaire svp! Attribuez de section(s) au média si vous ne l'avez pas fait!" ])

Modification de Média Liste média

@csrf
Selectionnez le chapitre puis les section(s) à attribuer au media
@php // dd($media); $mSecs = json_decode($media['sequences']); // array of sections linked to the Media $shouldHaveSec = "NO"; @endphp @foreach ($chapitres as $i => $chap) @if (count($chap['sections'])) @php $isMediaChap = false; if ($chap['id_chapitre'] === $media['chap_id']) { $shouldHaveSec = "YES"; $isMediaChap = true; } @endphp @foreach($chap['sections'] as $j => $section)
@endforeach @else
Aucune section n'est disponible pour le chapitre selectionné
@endif @endforeach
{{-- shouldHaveSec --}} {{-- old media --}}
Annuler
@endsection @section('script') {{-- Form js --}} {{-- Players' js --}} @if (mediaType($media['ext'], "video")) @elseif(mediaType($media['ext'], "image")) @endif @endsection