@extends('admin.layouts.master-soyuz') @section('title', __('Edit Ad |')) @section('body') @component('admin.component.breadcumb', ['thirdactive' => 'active']) @slot('heading') {{ __('Edit Ad') }} @endslot @slot('menu1') {{ __('Short Ads') }} @endslot @slot('menu2') {{ __('Edit') }} @endslot @slot('button')
{{ __('Back') }}
@endslot @endcomponent
{{ __('Edit Ad') }} #{{ $ad->id }}
@if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
    @foreach($errors->all() as $err)
  • {{ $err }}
  • @endforeach
@endif
@csrf @method('PUT')
{{ __('Changing this will recompute the end date from the start date.') }}

{{ __('Media — upload to replace, leave blank to keep current') }}
@if($ad->video) @php $videoSrc = preg_match('#^https?://#i', $ad->video) ? $ad->video : asset('videos/shorts/' . $ad->video); @endphp @else
{{ __('None') }}
@endif
{{ __('Max 50MB. mp4/mov/webm') }}
@php $thumbSrc = null; if ($ad->thumbnail) { if (preg_match('#^https?://#i', $ad->thumbnail)) { $thumbSrc = $ad->thumbnail; } elseif (file_exists(public_path('images/shorts/' . $ad->thumbnail))) { $thumbSrc = asset('images/shorts/' . $ad->thumbnail); } } @endphp @if($thumbSrc)
@else
{{ __('None') }}
@endif
{{ __('Cancel') }}
@endsection