@extends('admin.layouts.main') @section('content') @include('admin.layouts.includes.breadcrumbs') @section('panelTitle') {{ trans('admin/multistore/multistore.header.edit') }} @overwrite @section('panelContent') {!! Form::open(['url' => 'admin/multistore/edit/'.$multistore->id.'/save','class' => 'form-horizontal', 'enctype' => 'multipart/form-data']) !!}
{!! Form::label('name', trans('admin/multistore/multistore.edit.form.name'), ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('name', $multistore->name, ['class' => 'form-control', 'placeholder' => trans('admin/multistore/multistore.new.form.name')]) !!}
{!! Form::hidden('id', $multistore->id , ['class' => 'form-control']) !!}
{!! Form::label('domains', trans('admin/multistore/multistore.edit.form.domains'), ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('domains', implode(',',$multistore->domains), ['class' => 'form-control', 'placeholder' => trans('admin/multistore/multistore.edit.form.domains'), 'data-role' => 'tagsinput' ]) !!}
{!! Form::label('', trans('admin/multistore/multistore.new.form.langDefault'), ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('language', $languages->pluck('name','id'), $multistore->default_language, ['class' => 'form-control search-dropdown']) !!}
{!! Form::label('', trans('admin/multistore/multistore.edit.form.langAvail'), ['class' => 'col-sm-2 control-label']) !!}
@foreach ($languages as $language)
{!! Form::checkbox('languages['.$language->id.']', true, in_array($language->id, $multistoreLanguages, true), ['id' => 'languages['.$language->id.']']) !!} {!! Form::label('languages['.$language->id.']', $language->name) !!}
@endforeach
{!! Form::label('', trans('admin/multistore/multistore.new.form.currencyDefault'), ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('currency', $currencies->pluck('currency_code','id'), $multistore->default_currency, ['class' => 'form-control search-dropdown']) !!}
{!! Form::label('', trans('admin/multistore/multistore.edit.form.currencyAvail'), ['class' => 'col-sm-2 control-label']) !!}
@foreach ($currencies as $currency)
{!! Form::checkbox('currencies['.$currency->id.']', true, in_array($currency->id, $multistoreCurrencies, true), ['id' => 'currencies['.$currency->id.']']) !!} {!! Form::label('currencies['.$currency->id.']', $currency->currency_code) !!}
@endforeach
{{-- start: language flag --}}
{!! Form::label('icon', trans('admin/multistore/multistore.new.form.icon'), ['class' => 'col-sm-2 control-label']) !!}
{{ trans('admin/multistore/multistore.new.form.iconSelect') }} {!! Form::file('icon', ['id' => 'icon']) !!} {!! Form::text(null, null, ['class' => 'form-control', 'readonly' => '']) !!}
{{-- end: language flag --}}
{!! Form::checkbox('active', 1, $multistore->active, ['id' => 'active']) !!} {!! Form::label('active', trans('admin/multistore/multistore.new.form.active')) !!}
{{ trans('global.close') }}
{!! Form::button( trans('global.save'), ['type' => 'submit', 'class' => 'btn btn-primary'] ) !!}
{!! Form::close() !!} @overwrite @include('admin.layouts.includes.panel', ['id' => 'users-edit']) @endsection