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

التواصل

contact-16

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

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

التثبيت

php artisan ui:add-block contact-16

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

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

الاستخدام

Centred locations section: one card per office with a map, 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 'map', an embed URL. No map is embedded by default: each card shows a placeholder until you pass 'map', which renders as a lazy-loaded iframe titled with the location name.

<x-ui.blocks.contact-16
    tagline="Offices"
    heading="Where to find us"
    description="Two studios, one team."
    :locations="[
        ['name' => 'Sydney', 'address' => '1 Market St, Sydney NSW 2000', 'map' => 'https://www.openstreetmap.org/export/embed.html?bbox=151.20,-33.87,151.21,-33.86'],
        ['name' => 'Auckland', 'address' => '2 Queen St, Auckland 1010'],
    ]"
    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',
])