@extends('backend.app') @section('title', 'Landing Pages (Type 8)') @push('css') @endpush @section('content')

Landing Pages (Type 8)

Add New Page
@forelse($items as $key => $item) @empty @endforelse
ID Preview Headline Product Live URL Actions
#{{ $items->firstItem() + $key }} {{-- ✅ Dynamic Image Logic Fixed --}} @php if (!empty($item->right_product_image)) { $cleanName = str_replace('landing_pages/', '', $item->right_product_image); $finalPath = asset('landing_pages/' . $cleanName); } elseif (!empty($item->image)) { $cleanName = str_replace('landing_pages/', '', $item->image); $finalPath = asset('landing_pages/' . $cleanName); } elseif ($item->product && !empty($item->product->image)) { $finalPath = getImage('products', $item->product->image); } else { $finalPath = asset('frontend/images/no-image.png'); } @endphp Preview
{{ $item->title1 }}
Layout 8
@if($item->product) {{ $item->product->name }} @else Not Linked @endif Visit Page
@csrf @method('DELETE')
No data found.
@if($items->hasPages())
{{ $items->links('pagination::bootstrap-5') }}
@endif
@endsection @push('js') @endpush