@extends('backend.landings.layout') @section('title', __('Preview Landing Page')) @section('sub_title', __('Landing Preview')) @section('sub_subtitle', $landing_page->name) @section('sub_action') @lang('Edit') @lang('Back') @endsection @section('sub_content') @php $formatBytes = static function (int|float $bytes): string { if ($bytes < 1024) { return number_format($bytes) . ' B'; } if ($bytes < 1048576) { return number_format($bytes / 1024, 1) . ' KB'; } return number_format($bytes / 1048576, 1) . ' MB'; }; @endphp
@if($landing_page->hasIndexFile()) @else
@lang('index.html is missing') @lang('Upload a valid ZIP bundle before previewing this landing page.')
@endif
@endsection @push('scripts') @endpush