@extends('admin.layouts.master') @php $can_update = Gate::allows('update', $shop->config) ?: null; @endphp @section('content')

{{ trans('app.general_settings') }}

{!! Form::model($shop, ['method' => 'PUT', 'route' => ['admin.setting.basic.config.update', $shop->id], 'files' => true, 'id' => 'form', 'class' => 'form-horizontal', 'data-toggle' => 'validator']) !!}
{!! Form::label('name', '*' . trans('app.shop_name') . ':', ['class' => 'with-help control-label']) !!}
@if ($can_update) {!! Form::text('name', $shop->name, ['class' => 'form-control input-lg', 'placeholder' => trans('app.placeholder.shop_name'), 'required']) !!}
@else {{ $shop->name }} @endif
{!! Form::label('slug', '*' . trans('app.slug') . ':', ['class' => 'with-help control-label']) !!}
@if ($can_update) {!! Form::text('slug', null, ['class' => 'form-control slug', 'placeholder' => trans('app.placeholder.slug'), 'required']) !!}
@else {{ get_shop_url($shop->id) }} @endif
{!! Form::label('legal_name', '*' . trans('app.shop_legal_name') . ':', ['class' => 'with-help control-label']) !!}
@if ($can_update) {!! Form::text('legal_name', $shop->legal_name, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.shop_name'), 'required']) !!}
@else {{ $shop->legal_name }} @endif
{!! Form::label('email', '*' . trans('app.form.email_address') . ':', ['class' => 'with-help control-label']) !!}
@if ($can_update) {!! Form::email('email', $shop->email, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.valid_email'), 'required']) !!}
@else {{ $shop->email }} @endif
@if (is_incevio_package_loaded('livechat')) @include('liveChat::facebook.fb_chat_config_form') @endif
{!! Form::label('external_url', trans('app.form.external_url') . ':', ['class' => 'with-help control-label']) !!}
@if ($can_update) {!! Form::text('external_url', $shop->external_url, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.external_url')]) !!} @else {{ $shop->external_url }} @endif
{!! Form::label('timezone_id', '*' . trans('app.form.timezone') . ':', ['class' => 'with-help control-label']) !!}
@if ($can_update) {!! Form::select('timezone_id', $timezones, $shop->timezone_id, ['class' => 'form-control select2', 'placeholder' => trans('app.placeholder.timezone'), 'required']) !!}
@else {{ $shop->timezone->text }} @endif
{!! Form::label('description', trans('app.form.description') . ':', ['class' => 'with-help control-label']) !!}
@if ($can_update) {!! Form::textarea('description', $shop->description, ['class' => 'form-control summernote-without-toolbar', 'placeholder' => trans('app.placeholder.description'), 'rows' => '3']) !!} @else {{ $shop->description }} @endif
@if ($can_update)
{{ trans('help.logo_img_size') }}
{{ trans('app.form.upload') }}
{!! Form::label('exampleInputFile', trans('app.form.cover_img'), ['class' => 'with-help control-label']) !!}
{{ trans('help.cover_img_size') }}
{{ trans('app.form.upload') }}
@endif @if ($can_update)

* {{ trans('app.form.required_fields') }}

{!! Form::submit(trans('app.update'), ['class' => 'btn btn-lg btn-flat btn-new']) !!}
@endif
@if ($can_update)
{!! Form::label('maintenance_mode', trans('app.form.maintenance_mode'), ['class' => 'control-label with-help']) !!}
@endif
{!! Form::label('shop_address', trans('app.shop_address'), ['class' => 'control-label with-help']) !!}
@if ($shop->primaryAddress) {!! $shop->primaryAddress->toHtml() !!} {{ trans('app.update_address') }} @else {{ trans('app.add_address') }} @endif
@if (is_incevio_package_loaded('wallet'))
{!! Form::label('bank_info', trans('app.bank_info'), ['class' => 'control-label with-help']) !!}

{{ trans('app.form.account_holder_name') . ': ' }} {{ $shop_config->ac_holder_name }}

{{ trans('app.form.account_number') . ': ' }} {{ $shop_config->ac_number }}

@if ($shop_config->ac_type)

{{ trans('app.form.account_type') . ': ' }} {{ $shop_config->ac_type }}

@endif @if ($shop_config->ac_routing_number)

{{ trans('app.form.account_routing_number') . ': ' }} {{ $shop_config->ac_routing_number }}

@endif

{{ trans('app.form.ac_swift_bic_code') . ': ' }} {{ $shop_config->ac_swift_bic_code }}

@if ($shop_config->ac_iban)

{{ trans('app.form.ac_iban') . ': ' }} {{ $shop_config->ac_iban }}

@endif

{{ trans('app.form.ac_bank_address') . ': ' }} {{ $shop_config->ac_bank_address }}

@endif @if (isset($shop) && $shop->logoImage)
{{-- {{ trans('app.logo') }} --}} {{ trans('app.logo') }}
@endif @if (isset($shop) && $shop->coverImage)
{{ trans('app.cover_image') }}
@endif
{!! Form::close() !!}
@endsection