<?php $__env->startSection('content'); ?>
<div class="col-md-12 content-header" >
    <h1><i class="fa fa-file-text"></i> Number Prefix Settings</h1>
</div>

<section class="content">
    <div class="row">
        <div class="col-md-3">
            <?php echo $__env->make('settings.partials._menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        </div>
        <div class="col-md-9">
            <div class="panel panel-default">
                <div class="panel-heading">Number Settings</div>
                <div class="panel-body">
                    <?php if(count($errors) > 0): ?>
                    <?php echo form_errors($errors); ?>

                    <?php endif; ?>
                    <?php if(Session::has('flash_notification.message')): ?>
                    <?php echo message(); ?>

                    <?php endif; ?>

                    <?php if($setting): ?>
                    <?php echo Form::model($setting, ['route' => ['settings.number.update', $setting->id], 'method'=>'PATCH']); ?>

                    <?php else: ?>
                    <?php echo Form::open(['route' => ['settings.number.store']]); ?>

                    <?php endif; ?>
                    <div class="form-group">
                        <?php echo Form::label('client_number', 'Client Number Prefix'); ?>

                        <?php echo Form::text('client_number', null, ['class' => "form-control"]); ?>

                    </div>
                    <div class="form-group">
                        <?php echo Form::label('invoice_number', 'Invoice Number Prefix'); ?>

                        <?php echo Form::text('invoice_number', null, ['class' => "form-control"]); ?>

                    </div>
                    <div class="form-group">
                        <?php echo Form::label('estimate_number', 'Estimate Number Prefix'); ?>

                        <?php echo Form::text('estimate_number', null, ['class' => "form-control"]); ?>

                    </div>
                    <div class="form-group">
                        <?php echo Form::submit('Save Settings', ['class="btn btn-info"']); ?>

                    </div>
                    <?php echo Form::close(); ?>

                </div>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>