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

التواصل

contact-12

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

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

التثبيت

php artisan ui:add-block contact-12

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

الاستخدام

Heading and intro beside a compact contact list, with a full-width map underneath. Every piece of content is a prop. No map is embedded by default: the block shows a placeholder until you pass `map`, an embed URL, which renders as a lazy-loaded iframe titled `map-title`. Set any of email, phone or address to null to hide that row.

<x-ui.blocks.contact-12
    tagline="Visit us"
    heading="Contact"
    description="Drop in, call or write. We answer within a day."
    email="hello@acme.test"
    phone="+61 2 5550 0000"
    address="1 Market St, Sydney NSW 2000"
    map="https://www.openstreetmap.org/export/embed.html?bbox=151.20,-33.87,151.21,-33.86"
    map-title="Map of our Sydney office"
/>

الخصائص

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

@props([
    'tagline' => 'Tagline',
    'heading' => 'Contact us',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.',
    'emailTitle' => 'Email',
    'email' => 'email@example.com',
    'phoneTitle' => 'Phone',
    'phone' => '+1 (555) 000-0000',
    'addressTitle' => 'Office',
    'address' => '123 Sample St, Sydney NSW 2000 AU',
    'map' => null,
    'mapTitle' => 'Map',
])