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

التواصل

contact-15

قسم مواقع في المنتصف: بطاقتان للمكاتب، لكل منهما صورة والمدينة والعنوان ورابط للاتجاهات.

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

التثبيت

php artisan ui:add-block contact-15

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

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

الاستخدام

Centred locations section: one card per office with a photo, city, address and a directions link. Every piece of content is a prop. A location is ['name' => ..., 'address' => ...] plus optional 'href' (the directions link, which defaults to a Google Maps search for the address) and 'image' => ['src' => ..., 'alt' => ...]. Without an image src the card shows a placeholder.

<x-ui.blocks.contact-15
    tagline="Offices"
    heading="Where to find us"
    description="Two studios, one team."
    :locations="[
        ['name' => 'Sydney', 'address' => '1 Market St, Sydney NSW 2000', 'image' => ['src' => '/img/sydney.jpg', 'alt' => 'Sydney studio']],
        ['name' => 'Auckland', 'address' => '2 Queen St, Auckland 1010', 'image' => ['src' => '/img/auckland.jpg', 'alt' => 'Auckland studio']],
    ]"
    directions-label="Get directions"
/>

الخصائص

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

@props([
    'tagline' => 'Tagline',
    'heading' => 'Locations',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
    'locations' => [
        ['name' => 'Sydney', 'address' => '123 Sample St, Sydney NSW 2000 AU'],
        ['name' => 'New York', 'address' => '123 Sample St, New York NY 10000 USA'],
    ],
    'directionsLabel' => 'Get Directions',
])