@extends('admin.layout') @if (!empty(@$language) && @$language->rtl == 1) @section('styles') @endsection @endif @section('styles') @endsection @section('content') @php $tabDefs = [ 'home' => ['title' => __('Home Page CTA'), 'icon' => 'fas fa-home', 'desc' => __('Bottom CTA shown at the bottom of the public homepage.')], 'pricing' => ['title' => __('Pricing Page CTA'), 'icon' => 'fas fa-tags', 'desc' => __('Bottom CTA shown below the plan cards on the Pricing page.')], 'templates' => ['title' => __('Store Themes CTA'), 'icon' => 'fas fa-th-large', 'desc' => __('Bottom CTA shown on the Store Themes / Templates page.')], 'shops' => ['title' => __('Stores Launched CTA'), 'icon' => 'fas fa-store', 'desc' => __('Bottom CTA shown on the Customer Stores launched page.')], 'about' => ['title' => __('About Us CTA'), 'icon' => 'fas fa-info-circle', 'desc' => __('Bottom CTA shown on the About Us page.')], 'contact' => ['title' => __('Contact Page CTA'), 'icon' => 'fas fa-headset', 'desc' => __('Optional bottom CTA banner on the Contact Us page.')], ]; @endphp {{-- Page Tabs --}}
@csrf
@foreach ($tabDefs as $key => $tab) @php $item = @$ctas[$key] ?? new \App\Models\PageCta(); @endphp
{{ $tab['title'] }}
{{ $tab['desc'] }}
{{-- Status --}}
{{-- Heading Title --}}
{{-- Subtitle / Description --}}
{{-- Button Text --}}
{{-- Button Target URL --}}
{{-- Feature 1 --}}
{{-- Feature 2 --}}
{{-- Feature 3 --}}
{{-- Graphic Image Upload --}}
@php $hasImg = !empty(@$item->image) && file_exists(public_path('assets/front/img/' . @$item->image)); @endphp
@if ($hasImg) CTA Graphic @else Default Graphic @endif
@if ($hasImg) @endif

{{ __('Image Specifications:') }}

  • {{ __('Recommended formats: PNG with transparent background or high quality JPG/WEBP.') }}
  • {{ __('Recommended dimensions: 700px × 450px for optimum display sharpness.') }}
  • {{ __('If no image is uploaded, the default vector illustration is rendered automatically.') }}
@endforeach
{{-- Sticky Bottom Save Bar --}}
{{ __('Changes made to any tab will be saved together.') }}
@endsection @section('scripts') @endsection