@extends('super_admins.layouts.master') @section('title') Add Media @endsection @section('css') @endsection @section('content') @if ($errors->any()) @endif Media Home Media Add Media @csrf 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}}) @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 $podcast_category) id ? 'selected' : '' }}> {{ $podcast_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 : Audio Video @if ($errors->has('file_type')) {{ $errors->first('file_type') }} @endif Link Type : Internal External @if ($errors->has('link_type')) {{ $errors->first('link_type') }} @endif Choose @if ($errors->has('file')) {{ $errors->first('file') }} @endif External Link @if ($errors->has('file_url')) {{ $errors->first('file_url') }} @endif Choose Picture @if ($errors->has('image')) {{ $errors->first('image') }} @endif Status Select Media To Be Active Or Not {{-- @if ($errors->has('is_active')) {{ $errors->first('is_active') }} @endif --}} Submit @php $aspect_ratio = 3/1; @endphp @include('super_admins.includes.image_cropper_modal') @endsection @section('scripts') @include('super_admins.includes.image_cropper_scripts') @endsection