@extends('layouts.app') @section('title', __('dashboard.Catalog Settings')) @section('page_heading', __('dashboard.Catalog Settings')) @section('content') @php $catalogUrl = route('public.catalog.index'); @endphp {{-- KPIs --}}
@foreach([ ['fa-solid fa-eye', '#eff6ff','#2563eb', number_format($stats['total_visits']), __('dashboard.total_visits')], ['fa-solid fa-users', '#f0fdf4','#16a34a', number_format($stats['unique_visitors']),__('dashboard.unique_visitors')], ['fa-solid fa-bag-shopping', '#fffbeb','#d97706', number_format($stats['product_views']), __('dashboard.product_views_stat')], ['fa-solid fa-clock', '#f8fafc','#64748b', $stats['last_visit_at'] ? \Carbon\Carbon::parse($stats['last_visit_at'])->format('m-d H:i') : '—', 'آخر زيارة'], ] as [$icon,$bg,$color,$val,$lbl])
{{ $val }}
{{ $lbl }}
@endforeach
{{-- Settings form --}}
@csrf {{-- Identity --}}
{{ __('dashboard.Public Catalog Configuration') }}
@if(!empty($settings['catalog_logo_path']))
@endif
سيظهر في صفحة المعرض العام
{{-- Contact --}}
{{ __('dashboard.catalog_contact_section') }}
{{-- Visibility --}}
{{ __('dashboard.catalog_visibility_section') }}
@foreach([ ['catalog_show_price', $settings['show_price'], __('dashboard.Show Prices to Customers'), __('dashboard.catalog_show_price_help')], ['catalog_show_availability', $settings['show_availability'], __('dashboard.Show Stock Availability'), __('dashboard.catalog_show_availability_help')], ] as [$name,$checked,$label,$hint])
{{ $label }}
{{ $hint }}
@endforeach
{{-- Share sidebar --}}
{{ __('dashboard.Share Catalog') }}

{{ __('dashboard.Copy this link to send it to your customers via WhatsApp or Social Media.') }}

{{ __('dashboard.Preview Catalog') }} {{ __('dashboard.sidebar_catalog_analytics') }}
@endsection @section('scripts') @endsection