@extends('adminlte::page') @section('title', __('title.add_audio_post_translation')) @section('content_top_nav_right') @endsection @section('content_header') @stop @section('plugins.Flag', true) @section('plugins.BootstrapTagInput', true) @section('plugins.Tinymce', true) @section('plugins.Select2', true) @section('plugins.Filepond', true) @section('plugins.Player', true) @section('plugins.Pace', true) @section('plugins.Toastr', true) @section('plugins.Sweetalert2', true) @section('content')
@csrf

@if($post->post_type == 'audio_file') {{ __('title.upload_audio') }} @elseif($post->post_type == 'audio_url') {{ __('title.url') }} @else {{ __('title.embed') }} @endif

@php if ($post->post_type == 'audio_url'){ $value = old('post_source') ? old('post_source') : $post->post_source; } else { $value = ''; } @endphp post_type != 'audio_url') disabled @endif name="post_source" class="audio_url form-control @error('post_source') is-invalid @enderror" placeholder="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" value="{{ $value }}"> @error('post_source')
{{ $message }}
@enderror
@php if ($post->post_type == 'audio_embed'){ $value = old('post_source') ? old('post_source') : $post->post_source; } else { $value = ''; } @endphp @error('post_source')
{{ $message }}
@enderror
@error('post_title')
{{ $message }}
@enderror

{{ __('form.audio_thumbnails') }}

@if(PostHelper::isImageUrlAvailable($post)) @else
{{ __('form.placeholder_image') }}
{{ __('form.preview_image') }}
{{ __('form.help_upload_post_image') }}
@endif

{{ __('form.language') }}

@foreach(\App\Helpers\LocalizationHelper::languageWithFlag() as $trans) @if($trans->language != $language->language)
@if(\App\Helpers\PostHelper::checkExistsTrans($trans->language, $post->translations->first()->value)) @else @endif
@endif @endforeach

{{ __('form.categories') }}

{{ __('form.help_category') }}

{{ __('form.subcategories') }}

{{ __('form.help_subcategories') }}

{{ __('form.tags') }}

{{ __('form.help_tag') }}

{{ __('form.publish') }}

{{ __('form.help_public_visibility') }}
@stop @push('css') @include('admin.posts._style') @endpush @push('js') @include('layouts.partials._notification') @include('layouts.partials._switch_lang') @include('layouts.partials._csrf-token') @include('admin.posts._script') @endpush @section('footer') @include('layouts.partials._footer') @stop