{{ Form::open(array('route' => 'settings.store','method'=>'POST','files' => true,'class'=>'display inline-block')) }}
<?php $i = 1; ?>
@foreach($company as $key)
    <div class="col-md-3 form-group <?php if ($key->meta_key == "company_language") echo 'clear-both'; ?>">
        {{ Form::label($key->meta_key, Trans('settings.'.$key->meta_key)) }}
        @if($key->meta_key == 'company_sale_interface')
            <?php
            $versions = ['v1' => 'Version 1', 'v2' => 'Version 2'];
            ?>
            {{ Form::select($key->meta_key,$versions,$key->meta_value,['class'=>'form-control'])}}
        @elseif($key->meta_key == 'company_language')
            <?php
            $langs = ['kh' => 'ខ្មែរ', 'en' => 'English'];
            ?>
            {{ Form::select($key->meta_key,$langs,$key->meta_value,['class'=>'form-control'])}}

        @elseif($key->meta_key == 'company_branch')
            <?php
            $branches = ['one' => trans('settings.one'), 'more' => trans('settings.more')];
            ?>
            {{ Form::select($key->meta_key,$branches,$key->meta_value,['class'=>'form-control'])}}
        @elseif($key->meta_key == 'company_stock')
            <?php
            $stock = ['one' => trans('settings.one'), 'more' => trans('settings.more')];
            ?>
            {{ Form::select($key->meta_key,$stock,$key->meta_value,['class'=>'form-control'])}}

        @elseif($key->meta_key == 'company_logo')
            {{ Form::file($key->meta_key)}}
        @elseif($key->meta_key == 'company_banner')
            {{ Form::file($key->meta_key)}}
        @else
            <?php $type = $key->input_type; ?>
            {{ Form::$type($key->meta_key, $key->meta_value, [
                'class' => 'form-control',
                'placeholder' => Trans('settings.'.$key->meta_key),
                'rows'	=> '3',
            ])}}
        @endif
    </div>
    <?php $i++; ?>
@endforeach
<div class="row">
    <div class="col-md-12">
        <hr>
        <div class="pull-right">
            <button type="submit" name="submit"
                    class="btn btn-info">{{ Trans('dashboard.crud.update') }}</button>
            <button type="reset" name="reset"
                    class="btn btn-default">{{ Trans('buttons.reset') }}</button>
        </div>
    </div>
</div>
{{ Form::close()}}