<?php $__env->startSection('title', 'Settings - General'); ?>

<?php $__env->startSection('content_header', 'Settings <small>general</small>'); ?>

<?php $__env->startSection('content'); ?>
    <div class="row">
        <section class="col-lg-12">
            <div class="nav-tabs-custom">
                <?php echo $__env->make('admin.settings._partials.tabs', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                <div class="tab-content">
                    <div class="tab-pane active">
                        <form class="form-horizontal" method="POST" action="<?php echo e(route('admin.settings.general.update')); ?>">
                            <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                            <?php if(count($errors) > 0): ?>
                                <div class="alert alert-danger alert-dismissable">
                                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                                    <h4><i class="icon fa fa-ban"></i> <strong>Whoops!</strong> There were some problems with your input.</h4>
                                    <ul>
                                        <?php foreach($errors->all() as $error): ?>
                                            <li><?php echo e($error); ?></li>
                                        <?php endforeach; ?>
                                    </ul>
                                </div>
                            <?php endif; ?>
                            <fieldset>
                                <legend>General</legend>
                                <div class="form-group <?php if($errors->has('app_url')): ?> has-error <?php endif; ?>">
                                    <label for="inputAppUrl" class="col-sm-3 control-label">Application URL</label>
                                    <div class="col-sm-9">
                                        <input name="app_url" type="text" class="form-control" id="inputAppUrl" value="<?php echo e(old('app_url', app('settings')->get('app.url'))); ?>">
                                        <p class="help-block">Application URL address.</p>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group <?php if($errors->has('app_timezone')): ?> has-error <?php endif; ?>">
                                    <label for="inputAppTimezone" class="col-sm-3 control-label">Timezone</label>
                                    <div class="col-sm-9">
                                        <select name="app_timezone" type="text" class="form-control" id="inputAppTimezone">
                                            <?php foreach($timezones as $timezone): ?>
                                                <option value="<?php echo e($timezone); ?>" <?php if($timezone == old('app_timezone', app('settings')->get('app.timezone'))): ?> selected <?php endif; ?>><?php echo e($timezone); ?></option>
                                            <?php endforeach; ?>
                                        </select>
                                        <p class="help-block">Application date timezone.</p>
                                    </div>
                                </div>
                            </fieldset>
                            <fieldset>
                                <legend>Currency</legend>
                                <div class="form-group <?php if($errors->has('currency_currency')): ?> has-error <?php endif; ?>">
                                    <label for="InputGeneralCurrency" class="col-sm-3 control-label">Currency</label>
                                    <div class="col-sm-9">
                                        <input name="currency_currency" type="text" class="form-control" id="InputGeneralCurrency" value="<?php echo e(old('currency_currency', app('settings')->get('general.currency.currency'))); ?>">
                                        <p class="help-block">Application currency (USD, EUR...).</p>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group <?php if($errors->has('currency_symbol')): ?> has-error <?php endif; ?>">
                                    <label for="InputGeneralCurrencySymbol" class="col-sm-3 control-label">Symbol</label>
                                    <div class="col-sm-9">
                                        <input name="currency_symbol" type="text" class="form-control" id="InputGeneralCurrencySymbol" value="<?php echo e(old('currency_symbol', app('settings')->get('general.currency.symbol'))); ?>">
                                        <p class="help-block">Currency symbol.</p>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group <?php if($errors->has('currency_position')): ?> has-error <?php endif; ?>">
                                    <label for="InputGeneralCurrencySymbol" class="col-sm-3 control-label">Symbol position</label>
                                    <div class="col-sm-9">
                                        <div class="radio">
                                            <label>
                                                <input type="radio" name="currency_position" value="before" <?php if(old('currency_position', app('settings')->get('general.currency.position')) == 'before'): ?> checked <?php endif; ?>> Before
                                            </label>
                                        </div>
                                        <div class="radio">
                                            <label>
                                                <input type="radio" name="currency_position" value="after" <?php if(old('currency_position', app('settings')->get('general.currency.position')) == 'after'): ?> checked <?php endif; ?>> After
                                            </label>
                                        </div>
                                        <p class="help-block">Currency symbol position.</p>
                                    </div>
                                </div>
                            </fieldset>
                            <hr>
                            <div class="clearfix">
                                <div class="pull-right">
                                    <button type="submit" class="btn btn-success">Save</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </section>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>