@extends('Frontend.Layouts.modal') @section('modal_class', 'modal-lg') @section('title') {{ trans('front.setup') }} @stop @section('body') {!!Form::open(['route' => 'my_account_settings.update', 'method' => 'PUT', ''])!!} {!!Form::hidden('id', $item['id'])!!}
{!!Form::label('unit_of_distance', trans('validation.attributes.unit_of_distance').':')!!} {!!Form::select('unit_of_distance', $units_of_distance, $item['unit_of_distance'], ['class' => 'form-control'])!!}
{!!Form::label('unit_of_capacity', trans('validation.attributes.unit_of_capacity').':')!!} {!!Form::select('unit_of_capacity', $units_of_capacity, $item['unit_of_capacity'], ['class' => 'form-control'])!!}
{!!Form::label('unit_of_altitude', trans('validation.attributes.unit_of_altitude').':')!!} {!!Form::select('unit_of_altitude', $units_of_altitude, $item['unit_of_altitude'], ['class' => 'form-control'])!!}
{!! Form::label('week_start_day', trans('validation.attributes.week_start_day').':') !!} {!! Form::select('week_start_day', $week_start_days, (isset($item['week_start_day']) ? $item['week_start_day'] : null), ['class' => 'form-control']) !!}
{!!Form::label('timezone_id', trans('validation.attributes.timezone_id').':')!!} {!!Form::select('timezone_id', $timezones, $item['timezone_id'], ['class' => 'form-control'])!!}

{{ trans('validation.attributes.daylight_saving_time') }}

{!! Form::label('dst_type', trans('validation.attributes.dst_type').':') !!} {!! Form::select('dst_type', $dst_types, isset($user_dst->type) ? $user_dst->type : NULL, ['class' => 'form-control']) !!}
{!! Form::label('date_from', trans('validation.attributes.date_from').':') !!} {!! Form::text('date_from', isset($user_dst->date_from) ? $user_dst->date_from : NULL, ['class' => 'form-control']) !!}
{!! Form::label('date_to', trans('validation.attributes.date_to').':') !!} {!! Form::text('date_to', isset($user_dst->date_to) ? $user_dst->date_to : NULL, ['class' => 'form-control']) !!}
{!! Form::label('date_from', trans('front.from').':') !!}
{!! Form::select('month_from', $months, isset($user_dst->month_from) ? $user_dst->month_from : NULL, ['class' => 'form-control']) !!}
{!! Form::select('week_pos_from', $week_pos, isset($user_dst->week_pos_from) ? $user_dst->week_pos_from : NULL, ['class' => 'form-control']) !!}
{!! Form::select('week_day_from', $weekdays, isset($user_dst->week_day_from) ? $user_dst->week_day_from : NULL, ['class' => 'form-control']) !!}
{!! Form::text('time_from', isset($user_dst->time_from) ? $user_dst->time_from : NULL, ['class' => 'form-control', 'placeholder' => trans('front.time')]) !!}
{!! Form::label('date_to', trans('front.to').':') !!}
{!! Form::select('month_to', $months, isset($user_dst->month_to) ? $user_dst->month_to : NULL, ['class' => 'form-control']) !!}
{!! Form::select('week_pos_to', $week_pos, isset($user_dst->week_pos_to) ? $user_dst->week_pos_to : NULL, ['class' => 'form-control']) !!}
{!! Form::select('week_day_to', $weekdays, isset($user_dst->week_day_to) ? $user_dst->week_day_to : NULL, ['class' => 'form-control']) !!}
{!! Form::text('time_to', isset($user_dst->time_to) ? $user_dst->time_to : NULL, ['class' => 'form-control', 'placeholder' => trans('front.time')]) !!}
{!! Form::label('dst_country_id', trans('front.country').':') !!} {!! Form::select('dst_country_id', $dst_countries, isset($user_dst->country_id) ? $user_dst->country_id : NULL, ['class' => 'form-control', 'data-live-search' => true]) !!}
@foreach ($groups as $group)
{!!Form::text("edit_group[{$group->id}]", $group->title, ['class' => 'form-control', 'placeholder' => trans('validation.attributes.name')])!!}
@endforeach
{!!Form::text('add_group[]', null, ['class' => 'form-control', 'placeholder' => trans('validation.attributes.name')])!!}
@include('Frontend.UserDrivers.index')
@include('Frontend.CustomEvents.index')
{{ trans('front.to_trigger_an_event') }}
@if (!Auth::User()->perm('sms_gateway', 'view')) @else
{!! Form::checkbox('sms_gateway', 1, $item['sms_gateway']) !!} {!! Form::label('sms_gateway', trans('front.enable_sms_gateway')) !!}
{!!Form::label('request_method', trans('validation.attributes.request_method').':')!!} {!!Form::select('request_method', $request_method_select, $item['sms_gateway_params']['request_method'], ['class' => 'form-control'])!!}
{!!Form::label('encoding', trans('validation.attributes.encoding').':')!!} {!!Form::select('encoding', $encoding_select, $item['sms_gateway_params']['encoding'], ['class' => 'form-control'])!!}
{!!Form::label('authentication', trans('validation.attributes.authentication').':')!!} {!!Form::select('authentication', $authentication_select, $item['sms_gateway_params']['authentication'], ['class' => 'form-control'])!!}
{!!Form::label('username', trans('validation.attributes.username').':')!!} {!!Form::text('username', $item['sms_gateway_params']['username'], ['class' => 'form-control'])!!}
{!!Form::label('password', trans('validation.attributes.password').':')!!} {!!Form::password('password', ['class' => 'form-control'])!!}
{!!Form::label('custom_headers', trans('validation.attributes.sms_gateway_headers').':')!!} {!!Form::textarea('custom_headers', $item['sms_gateway_params']['custom_headers'], ['class' => 'form-control', 'rows' => 2])!!} Colon seperated list ( e.g. Accept: text/plain; Accept-Language: en-US; )
{!!Form::label('sms_gateway_url', trans('validation.attributes.sms_gateway_url').':')!!} {!!Form::textarea('sms_gateway_url', $item['sms_gateway_url'], ['class' => 'form-control', 'rows' => 3])!!}
{!!trans('front.sms_gateway_text')!!}
{!!trans('front.sms_in_queue')!!}: {!!$sms_queue_count!!}
{!!trans('front.app_last_connection')!!}: {!! Formatter::time()->human(Auth::User()->sms_gateway_app_date) !!}
{!!trans('front.sms_deletion_after')!!}
{!! Form::label('auth_id', trans('validation.attributes.auth_id').':') !!} {!! Form::text('auth_id', (isset($item['sms_gateway_params']['auth_id']) ? $item['sms_gateway_params']['auth_id'] : null), ['class' => 'form-control']) !!}
{!! Form::label('auth_token', trans('validation.attributes.auth_token').':') !!} {!! Form::text('auth_token', (isset($item['sms_gateway_params']['auth_token']) ? $item['sms_gateway_params']['auth_token'] : null), ['class' => 'form-control']) !!}
{!! Form::label('senders_phone', trans('validation.attributes.senders_phone').':') !!} {!! Form::text('senders_phone', (isset($item['sms_gateway_params']['senders_phone']) ? $item['sms_gateway_params']['senders_phone'] : null), ['class' => 'form-control']) !!}
@endif
@include('Frontend.UserSmsTemplates.index')
@include('Frontend.UserGprsTemplates.index')
{!! Form::checkbox('default_widgets', 1, !empty($widgets['default'])) !!} {!! Form::label('default_widgets', trans('front.default') . ' ' .trans('front.widgets')) !!}

{!! Form::checkbox('widgets[status]', 1, !empty($widgets['status'])) !!} {!! Form::label('widgets[status]', trans('front.enable_widgets')) !!}