@extends('super_admins.layouts.master') @section('title') Edit Media @endsection @section('css') @endsection @section('content') @if ($errors->any()) @foreach ($errors->all() as $error) {{-- {{ $error }} --}} @endforeach @endif Media Home Media Edit Media @csrf @method('PUT') Multi Language @foreach ($active_languages as $key => $language) {{ $language->name }} @endforeach @foreach ($active_languages as $key => $language) Name ({{ $language->code }}) @if ($errors->has('name.' . $language->code)) {{ $errors->first('name.' . $language->code) }} @endif Description ({{ $language->code }}) {{ $broadcast->getTranslation('description', $language->code) }} @if ($errors->has('description.' . $language->code)) {{ $errors->first('description.' . $language->code) }} @endif @endforeach @if (isset($broadcast_categories)) Select Media Category : @if (count($broadcast_categories) > 0) Select Media Category @foreach ($broadcast_categories as $broadcast_category) broadcast_category_id == $broadcast_category->id ? 'selected' : '' }}> {{ $broadcast_category->name }} @endforeach @else No Media Category Exists @endif @if ($errors->has('broadcast_category_id')) {{ $errors->first('broadcast_category_id') }} @endif @endif @if (isset($tags)) Select Media Tags : @if (count($tags) > 0) Select Media Tags @foreach ($tags as $tag) {{ $tag->name }} @endforeach @else No Media Tag Exists @endif @if ($errors->has('tag_ids')) {{ $errors->first('tag_ids') }} @endif @endif File Type : Select File Type file_type == 'audio') selected @endif value="audio"> Audio file_type == 'video') selected @endif value="video"> Video @if ($errors->has('file_type')) {{ $errors->first('file_type') }} @endif Link Type : link_type == 'internal') selected @endif value="internal">Internal link_type == 'external') selected @endif value="external">External @if ($errors->has('link_type')) {{ $errors->first('link_type') }} @endif Choose File @if ($errors->has('file')) {{ $errors->first('file') }} @endif @if ($broadcast->link_type == 'internal') @if ($broadcast->file_type == 'audio') Your browser does not support the audio element. @else Your browser does not support the video element. @endif @else -- No File Selected @endif External Link @if ($errors->has('file_url')) {{ $errors->first('file_url') }} @endif Choose Pciture @if ($errors->has('image')) {{ $errors->first('image') }} @endif @if ($broadcast->image) @else -- No Image Selected @endif Status is_active) checked @endif class="custom-control-input" id="customSwitch1" aria-describedby="IsActiveError" aria-invalid="true"> Select Media To Be Active Or Not {{-- @if ($errors->has('is_active')) {{ $errors->first('is_active') }} @endif --}} Update @php $aspect_ratio = 3 / 1; @endphp @include('super_admins.includes.image_cropper_modal') @endsection @section('scripts') @include('super_admins.includes.image_cropper_scripts') @endsection