@extends('dashboard.layouts.app') @section('title', __('dashboard.Edit Static Ad')) @section('page_heading', __('dashboard.Edit Static Ad')) @section('breadcrumb') @endsection @section('actions') {{ __('dashboard.View All Static Ads') }} @endsection @section('content')

{{ __('dashboard.Edit Static Ad') }}

@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
is_undeletable ? 'readonly' : '' }} required /> @error('code')
{{ $message }}
@enderror @if ($staticAd->is_undeletable)
{{ __('dashboard.This code cannot be changed because the ad is undeletable.') }}
@endif
@error('media_type')
{{ $message }}
@enderror
@if($staticAd->media_path)
@if($staticAd->media_type == 'image') @elseif($staticAd->media_type == 'video') @elseif($staticAd->media_type == 'gif') @endif
@endif @error('media_path')
{{ $message }}
@enderror
@error('location_description')
{{ $message }}
@enderror
@error('link')
{{ $message }}
@enderror
@error('button_text')
{{ $message }}
@enderror
@error('button_link')
{{ $message }}
@enderror
button_is_active) ? 'checked' : '' }} />
@error('button_is_active')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }} />
@error('is_active')
{{ $message }}
@enderror
{{ __('dashboard.Cancel') }}
@endsection @push('scripts') @endpush