@extends('layouts.app') @section('title', 'اتصل بنا') @section('body_class', 'index') @section('content')

اتصل بنا

معلومات التواصل

{!! nl2br(get_setting('site_main_address')) !!}

{!! nl2br(get_setting('working_time')) !!}

راسلنا

@include ('partials.notify')
{!! Form::open(['method' => 'POST', 'action' => ['HomeController@contacts']] ) !!}
{!! Form::text('full_name', @Auth::user()->name, ['class'=>'form-control', 'placeholder'=>'أدخل اسمك الكامل', ((!empty(Auth::user()->name))? 'readonly' : ''), 'data-validation' => "required", 'data-validation-error-msg'=>"أدخل اسمك الكامل"]) !!}
{!! Form::email('email', @Auth::user()->email, ['class'=>'form-control', 'placeholder'=>'أدخل البريد الإلكتروني' , ((!empty(Auth::user()->email))? 'readonly' : ''), 'data-validation' => "email", 'data-validation-error-msg'=>"أدخل بريد إلكتروني صحيح"]) !!}
{!! Form::text('subject', @$course->title, ['class'=>'form-control', 'placeholder'=>'أدخل عنوان الرسالة', ((!empty($course->title))? 'readonly' : ''), 'data-validation' => "required", 'data-validation-error-msg'=>"أدخل عنوان الرسالة"]) !!}
{!! Form::text('phone', @Auth::user()->phone, ['class'=>'form-control', 'placeholder'=>'أدخل رقم الجوال', 'data-validation' => "custom", 'data-validation-regexp'=>"\b\d{9,15}\b",'data-validation-optional'=>"true",'data-validation-error-msg' => "أدخل رقم هاتف صحيح", ((!empty(Auth::user()->email))? 'readonly' : '')]) !!}
{!! Form::textarea('message', '', ['placeholder'=>'اكتب نص الرسالة','class' => 'form-control','rows'=>'50','data-validation' => "required", 'data-validation-error-msg'=>"أدخل نص الرسالة"]) !!}
{!! Form::close() !!}
@endsection @section('js')