انتقل إلى المحتوى
الأدلة
التنقل
التنبيهات
الطبقات العائمة
التخطيط
عرض البيانات
النماذج
.md

التذييل

footer-02

تذييل خريطة موقع عريض: صف النشرة البريدية في الأعلى، والشعار بجانب خمسة أعمدة روابط، ثم شريط قانوني مع أيقونات اجتماعية.

فتح بملء الشاشة

التثبيت

php artisan ui:add-block footer-02

أمر واحد يثبّت ملف Blade الخاص بالقالب وكل مكوّن يعتمد عليه. اعرضه في تخطيطك كالتالي <x-ui.blocks.footer-02 />.

المكونات المضمّنة

الاستخدام

Every piece of content is a prop, so you can drive this footer from a CMS. A link is either a plain string or ['label' => ..., 'href' => ...]. A social is ['label' =>, 'href' =>, 'icon' =>] where icon is a key of the $icons map below ('facebook', 'instagram', 'x', 'linkedin', 'youtube'), or pass 'svg' => '<svg ...>' to use a mark of your own. The five columns are a plain list, so pass three and you get three.

<x-ui.blocks.footer-02
    brand="Acme"
    brand-href="/"
    newsletter-title="Ship notes"
    newsletter-text="One email a month, every new release."
    :form-action="route('newsletter.store')"
    :columns="[
        ['title' => 'Product', 'links' => [
            ['label' => 'Pricing', 'href' => '/pricing'],
            ['label' => 'Changelog', 'href' => '/changelog'],
        ]],
        ['title' => 'Developers', 'links' => [
            ['label' => 'Docs', 'href' => '/docs'],
            ['label' => 'API', 'href' => '/docs/api'],
        ]],
        ['title' => 'Company', 'links' => ['About', 'Careers', 'Press']],
    ]"
    :socials="[
        ['label' => 'X', 'href' => 'https://x.com/acme', 'icon' => 'x'],
        ['label' => 'LinkedIn', 'href' => 'https://linkedin.com/company/acme', 'icon' => 'linkedin'],
    ]"
    :legal="[
        ['label' => 'Privacy', 'href' => '/privacy'],
        ['label' => 'Terms', 'href' => '/terms'],
    ]"
    copyright="© 2026 Acme Pty Ltd"
/>

الخصائص

كل خاصية مع قيمتها الافتراضية. مرّر أيًّا منها كسمة، واستخدم : لربط قيمة PHP.

@props([
    'brand' => 'LaralCN',
    'brandHref' => '#',
    'newsletterTitle' => 'Join our newsletter',
    'newsletterText' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
    'formAction' => null,
    'emailPlaceholder' => 'Enter your email',
    'subscribeLabel' => 'Subscribe',
    'privacyHref' => '#',
    'columns' => [
        ['title' => 'Column One', 'links' => ['Link One', 'Link Two', 'Link Three', 'Link Four', 'Link Five']],
        ['title' => 'Column Two', 'links' => ['Link Six', 'Link Seven', 'Link Eight', 'Link Nine', 'Link Ten']],
        [
            'title' => 'Column Three',
            'links' => ['Link Eleven', 'Link Twelve', 'Link Thirteen', 'Link Fourteen', 'Link Fifteen'],
        ],
        [
            'title' => 'Column Four',
            'links' => ['Link Sixteen', 'Link Seventeen', 'Link Eighteen', 'Link Nineteen', 'Link Twenty'],
        ],
        [
            'title' => 'Column Five',
            'links' => [
                'Link Twenty One',
                'Link Twenty Two',
                'Link Twenty Three',
                'Link Twenty Four',
                'Link Twenty Five',
            ],
        ],
    ],
    'socials' => [
        ['label' => 'Facebook', 'icon' => 'facebook'],
        ['label' => 'Instagram', 'icon' => 'instagram'],
        ['label' => 'X', 'icon' => 'x'],
        ['label' => 'LinkedIn', 'icon' => 'linkedin'],
        ['label' => 'Youtube', 'icon' => 'youtube'],
    ],
    'legal' => ['Privacy Policy', 'Terms of Service', 'Cookies Settings'],
    'copyright' => null,
])