@extends('admin.layout')
@section('title', 'إدارة قوالب الهيدر')
@section('page-title', 'إدارة قوالب الهيدر')
@section('content')
@php
// Sample data - replace with actual data from controller
$templates = collect([
(object)[
'id' => 1,
'name' => 'القالب الكلاسيكي',
'description' => 'قالب هيدر تقليدي مع شعار وقائمة أفقية',
'preview_image' => '/images/header-template-1.jpg',
'is_active' => true,
'is_default' => true,
'created_at' => '2024-01-15'
],
(object)[
'id' => 2,
'name' => 'القالب الحديث',
'description' => 'قالب هيدر عصري مع تأثيرات بصرية متقدمة',
'preview_image' => '/images/header-template-2.jpg',
'is_active' => true,
'is_default' => false,
'created_at' => '2024-01-20'
],
(object)[
'id' => 3,
'name' => 'القالب المبسط',
'description' => 'قالب هيدر بسيط ونظيف للمواقع الأنيقة',
'preview_image' => '/images/header-template-3.jpg',
'is_active' => false,
'is_default' => false,
'created_at' => '2024-01-25'
]
]);
@endphp
@foreach($templates as $template)
@if($template->is_default)
افتراضي
@endif
{{ $template->is_active ? 'نشط' : 'غير نشط' }}
{{ $template->name }}
{{ $template->description }}
{{ $template->created_at }}
@if(!$template->is_default)
@endif
@endforeach
@if($templates->count() == 0)