{{ (@$clients) ? 'Edit' : 'Add' }} {{(@$cash_parcels ? "Cash" : "")}} Client

@if(isset($clients) && $clients->id) {{ Form::model($clients, [ 'route' => @$cash_parcels == 'true' ? ['cash-clients.update', $clients->id] : ['clients.update', $clients->id], 'method' => 'PUT', 'id' => 'clients_save', 'enctype' => 'multipart/form-data' ]) }} {{ Form::hidden('id', $clients->id) }} @else {{ Form::open([ 'route' => @$cash_parcels == 'true' ? 'cash-clients.store' : 'clients.store', 'method' => 'POST', 'id' => 'clients_save', 'enctype' => 'multipart/form-data' ]) }} @endif
{{Form::text( 'name', ((@$clients->id) ? @$clients->name : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'contactpersonname', ((@$clients->id) ? @$clients->contactpersonname : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'address1', ((@$clients->id) ? @$clients->address1 : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
{{--
{{Form::text( 'address2', ((@$clients->id) ? @$clients->address2 : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
--}}
{{ Form::select( 'state', @$list_state, ((@$clients->id) ? @$clients->state : @$default_state_key), [ "class" => "form-control select2", 'onchange'=>'getCities(this)'] ) }}
{{ Form::select( 'city', @$list_city, ((@$clients->id) ? @$clients->city : @$default_city_key), [ "class" => "form-control select2", ] ) }}
{{Form::text( 'phone1', ((@$clients->id) ? @$clients->phone1 : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
{{--
{{Form::text( 'phone2', ((@$clients->id) ? @$clients->phone2 : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
--}} {{--
--}} {{--
{{Form::text( 'phone3', ((@$clients->id) ? @$clients->phone3 : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
--}}
{{Form::text( 'email', ((@$clients->id) ? @$clients->email : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'emails', ((@$clients->id) ? @$clients->emails : ""), [ "class" => "form-control", "placeholder" => "" ]) }} Add multiple emails with comma (,) seperated. For eg: - abc@test.com, def@test.com and so on
{{Form::text( 'fchpercent', ((@$clients->id) ? @$clients->fchpercent : ""), [ "class" => "form-control", "placeholder" => "Eg. 10" ]) }}
{{Form::text( 'fov_percentage', ((@$clients->id) ? @$clients->fov_percentage : ""), [ "class" => "form-control", "placeholder" => "Eg. 0.02" ]) }}
@if($is_show_parcel_booking_with_parcel_value_charge)
{{Form::text( 'parcel_value_percentage', ((@$clients->id) ? @$clients->parcel_value_percentage : ""), [ "class" => "form-control", "placeholder" => "Eg. 0.02" ]) }}
@endif
{{Form::text( 'gstno', ((@$clients->id) ? @$clients->gstno : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'cgst', ((@$clients->id) ? @$clients->cgst : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'sgst', ((@$clients->id) ? @$clients->sgst : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'igst', ((@$clients->id) ? @$clients->igst : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
@if($is_allow_carrier_quotation)
{{ Form::select( 'carriers[]', @$list_carriers, ((@$clients->id) ? @$selected_carriers : ''), [ "class" => "form-control select2 client_carriers", "multiple"=>"multiple", "data-placeholder"=>"Select a Carrier"] ) }}
{{ Form::radio( "default_quotation", 1, (((@$clients->id) && (@$clients->default_quotation == '1')) ? true : ('1' === '1' ? true : false) ), [ 'id' => 'status_Client', 'class'=>'minimal', ]) }} {{ Form::radio( "default_quotation", 2, (((@$clients->id) && (@$clients->default_quotation == '2')) ? true : ('1' === '2' ? true : false) ), [ 'id' => 'status_Carrier', 'class'=>'minimal', ]) }}
@endif
{{ Form::radio( "status", 1, (((@$clients->id) && (@$clients->status == '1')) ? true : ('1' === '1' ? true : false) ), [ 'id' => 'status_Active', 'class'=>'minimal', ]) }} {{ Form::radio( "status", 2, (((@$clients->id) && (@$clients->status == '2')) ? true : ('1' === '2' ? true : false) ), [ 'id' => 'status_Inactive', 'class'=>'minimal', ]) }}


{{--
--}}
{{ Form::close() }}