Personal Details

@php $isDisabled = false; if (!auth()->user()->hasPermissionTo('users')) { $isDisabled = true; } @endphp
{!! Form::label('dcID', __('models/users.fields.dcID') . ':') !!} {!! Form::text('dcID', null, ['class' => ($errors->has('dcID')) ? 'form-control is-invalid py-3' : 'form-control py-3 hidden', 'disabled' => $isDisabled]) !!} @if ($errors->has('dcID')) {{ $errors->first('dcID') }} @endif
{!! Form::label('image', 'Upload Photo:') !!} {!! Form::file('image', ['class' => 'form-control']) !!} @if ($errors->has('image')) {{ $errors->first('image') }} @endif
{!! Form::label('first_name', __('auth.first_name') . ':') !!} {!! Form::text('first_name', null, ['class' => ($errors->has('first_name')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
{!! Form::label('last_name', __('auth.last_name') . ':') !!} {!! Form::text('last_name', null, ['class' => ($errors->has('last_name')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
{!! Form::label('phone_no', __('models/users.fields.phone_no') . ':') !!} {!! Form::text('phone_no', null, ['class' => ($errors->has('phone_no')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('phone_no')) {{ $errors->first('phone_no') }} @endif
{!! Form::label('email', __('auth.email') . ':') !!} {!! Form::email('email', null, ['class' => ($errors->has('email')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('email')) {{ $errors->first('email') }} @endif
{!! Form::label('password', __('auth.password') . ':') !!} @if ($errors->has('password')) {{ $errors->first('password') }} @endif
{!! Form::label('password_confirmation', __('auth.confirm_password') . ':') !!} @if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif

Company Details

{!! Form::label('company_name', __('models/users.fields.company_name') . ':') !!} {!! Form::text('company_name', null, ['class' => ($errors->has('company_name')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('company_name')) {{ $errors->first('company_name') }} @endif
{{--
{!! Form::label('business_location', __('models/users.fields.business_location') . ':') !!} {!! Form::text('business_location', null, ['class' => ($errors->has('business_location')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('business_location')) {{ $errors->first('business_location') }} @endif
--}}
{!! Form::label('registration_no', __('models/users.fields.registration_no') . ':') !!} {!! Form::text('registration_no', null, ['class' => ($errors->has('registration_no')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('registration_no')) {{ $errors->first('registration_no') }} @endif
{{--
{!! Form::label('vat', __('models/users.fields.vat') . ':') !!} {!! Form::text('vat', null, ['class' => ($errors->has('vat')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('vat')) {{ $errors->first('vat') }} @endif
--}} {{--
{!! Form::label('town', __('models/users.fields.town') . ':') !!} {!! Form::text('town', null, ['class' => ($errors->has('town')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('town')) {{ $errors->first('town') }} @endif
--}}
{!! Form::label('city', __('models/users.fields.city') . ':') !!} {!! Form::text('city', null, ['class' => ($errors->has('city')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('city')) {{ $errors->first('city') }} @endif
{!! Form::label('postal', __('models/users.fields.postal') . ':') !!} {!! Form::text('postal', null, ['class' => ($errors->has('postal')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('postal')) {{ $errors->first('postal') }} @endif
{!! Form::label('country', __('models/users.fields.country') . ':') !!} @if ($errors->has('country')) {{ $errors->first('country') }} @endif
{!! Form::label('address_1', __('models/users.fields.address_1') . ':') !!} {!! Form::text('address_1', null, ['class' => ($errors->has('address_1')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('address_1')) {{ $errors->first('address_1') }} @endif
{!! Form::label('address_2', __('models/users.fields.address_2') . ':') !!} {!! Form::text('address_2', null, ['class' => ($errors->has('address_2')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('address_2')) {{ $errors->first('address_2') }} @endif
@if ($errors->has('industry')) {{ $errors->first('industry') }} @else Please select a industry. @endif

Contact Details

{!! Form::label('contact_phone_no', __('models/users.fields.phone_no') . ':') !!} {!! Form::text('contact_phone_no', null, ['class' => ($errors->has('contact_phone_no')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('contact_phone_no')) {{ $errors->first('contact_phone_no') }} @endif
{!! Form::label('contact_first_name', __('auth.first_name') . ':') !!} {!! Form::text('contact_first_name', null, ['class' => ($errors->has('contact_first_name')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('contact_first_name')) {{ $errors->first('contact_first_name') }} @endif
{!! Form::label('contact_last_name', __('auth.last_name') . ':') !!} {!! Form::text('contact_last_name', null, ['class' => ($errors->has('contact_last_name')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('contact_last_name')) {{ $errors->first('contact_last_name') }} @endif
{!! Form::label('contact_email', __('auth.email') . ':') !!} {!! Form::email('contact_email', null, ['class' => ($errors->has('contact_email')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('contact_email')) {{ $errors->first('contact_email') }} @endif
@if(request()->is('users/profile/settings'))

Set Margin Percentage for Your Couriers

@foreach($couriers as $courier)
@if(in_array($courier->id, $allowedCourriers->pluck('courier_id')->toArray())) @php $courierMargin = ''; foreach ($allowedCourriers as $cor) { if ($cor->courier_id == $courier->id) { $courierMargin = $cor->courier_margin; break; } } @endphp @else @endif
@endforeach
@else

Select Allowed Couriers

@php @endphp {!! Form::select('allowed_couriers[]', $couriers->pluck('courier_name', 'id'), $allowedCourriers->pluck('courier_id')->toArray(), ['class' => 'form-control js-example-basic-multiple', 'multiple' => 'multiple']) !!}
@endif Set Pricing
@if(!$isDisabled)
{!! Form::label('active', __('models/users.fields.active')) !!}
{!! Form::label('isVat', __('Applay Vat on Price.')) !!}
{!! Form::label('vatPercentage', __('Vat Percentage') . ':') !!} {!! Form::text('vatPercentage', null, ['class' => ($errors->has('vatPercentage')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('vatPercentage')) {{ $errors->first('vatPercentage') }} @endif {!! Form::label('allowed_weight', __('Max allowed weight') . ':') !!} {!! Form::text('allowed_weight', null, ['class' => ($errors->has('allowed_weight')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('allowed_weight')) {{ $errors->first('allowed_weight') }} @endif
{!! Form::label('isPickup', __('Allow Pickup Requests')) !!}
{!! Form::label('pickupRate', __('Pickup Rate') . ':') !!} {!! Form::text('pickupRate', null, ['class' => ($errors->has('pickupRate')) ? 'form-control is-invalid py-3' : 'form-control py-3', 'disabled' => $isDisabled]) !!} @if ($errors->has('pickupRate')) {{ $errors->first('pickupRate') }} @endif
{!! Form::label('allow_no_pay_checkout', __('Allow No Pay Checkout')) !!}
@endif
Cancel
{!! Form::submit('Save', ['class' => 'btn btn-primary text-white']) !!}