@extends('backend.layout.main') @section('content') @if(session()->has('not_permitted'))
{{ session()->get('not_permitted') }}
@endif

{{trans('file.Add Customer')}}

{{trans('file.The field labels marked with * are required input fields')}}.

{!! Form::open(['route' => 'customer.store', 'method' => 'post', 'files' => true]) !!}
 
@if($errors->has('company_name')) {{ $errors->first('company_name') }} @endif
@if($errors->has('email')) {{ $errors->first('email') }} @endif
@if($errors->has('phone_number')) {{ $errors->first('phone_number') }} @endif
@foreach($custom_fields as $field) @if(!$field->is_admin || \Auth::user()->role_id == 1)
@if($field->type == 'text') is_required){{'required'}}@endif> @elseif($field->type == 'number') is_required){{'required'}}@endif> @elseif($field->type == 'textarea') @elseif($field->type == 'checkbox')
@foreach($option_values as $value)   @endforeach @elseif($field->type == 'radio_button')
@foreach($option_values as $value)   @endforeach @elseif($field->type == 'select') @elseif($field->type == 'multi_select') @elseif($field->type == 'date_picker') is_required){{'required'}}@endif> @endif
@endif @endforeach
 
@if($errors->has('name')) {{ $errors->first('name') }} @endif
{!! Form::close() !!}
@endsection @push('scripts') @endpush