@extends('layouts.app') @section('title', __('master::lang.add_client')) @section('content')

@lang('master::lang.add_new_client')

@if(session('success'))
{{ session('success') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {!! Form::open([ 'url' => route('master.client.store'), 'method' => 'POST', 'id' => 'create_client', ]) !!}
{!! Form::label('name', __('master::lang.name')) !!} {!! Form::text('name', old('name'), ['class'=>'form-control', 'required', 'placeholder' => __('master::lang.name')]) !!}
{!! Form::label('phone', __('master::lang.phone')) !!} {!! Form::text('phone', old('phone'), [ 'class'=>'form-control', 'required', 'placeholder' => '07xxxxxxxxx' ]) !!}
{!! Form::label('business_name', __('master::lang.business_name')) !!} {!! Form::text('business_name', old('business_name'), ['class'=>'form-control', 'required', 'placeholder' => __('master::lang.business_name')]) !!}
{!! Form::label('email', __('master::lang.email')) !!} {!! Form::email('email', old('email'), [ 'class'=>'form-control', 'required', 'placeholder' => 'example@email.com' ]) !!}
{!! Form::label('city_id', __('master::lang.city')) !!} {!! Form::select('city_id', $cities->pluck('name', 'id'), old('city_id'), [ 'class' => 'form-control select2', 'required', 'placeholder' => __('master::lang.select_city') ]) !!}
{{-- اختيار السوب دومين من المتاحة فقط --}}
{!! Form::label('subdomain_id', __('master::lang.subdomain')) !!} {!! Form::select('subdomain_id', $subdomains->pluck('name','id'), old('subdomain_id'), [ 'class' => 'form-control', 'placeholder' => __('master::lang.select_subdomain'), 'required' ]) !!}
{!! Form::submit(__('master::lang.save_client'), ['class'=>'btn btn-success']) !!}
{!! Form::close() !!}
@endsection