@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/footer-template-1.jpg',
'is_active' => true,
'is_default' => true,
'created_at' => '2024-01-15'
],
(object)[
'id' => 2,
'name' => 'الفوتر الحديث',
'description' => 'فوتر عصري مع تقسيمات متعددة وتصميم متجاوب',
'preview_image' => '/images/footer-template-2.jpg',
'is_active' => true,
'is_default' => false,
'created_at' => '2024-01-20'
],
(object)[
'id' => 3,
'name' => 'الفوتر المبسط',
'description' => 'فوتر بسيط ونظيف مع الحد الأدنى من المعلومات',
'preview_image' => '/images/footer-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)