@extends('app')
@section('content')
<div class="col-md-12 content-header" >
    <h1><i class="fa fa-file-text"></i> {{trans('application.number_prefix')}}</h1>
</div>
<section class="content">
    <div class="row">
        <div class="col-md-3">
            @include('settings.partials._menu')
        </div>
        <div class="col-md-9">
            <div class="box box-primary">
                <div class="box-body">
                    @if (count($errors) > 0)
                    {!! form_errors($errors) !!}
                    @endif
                    @if($setting)
                    {!! Form::model($setting, ['route' => ['number.update', $setting->uuid], 'method'=>'PATCH']) !!}
                    @else
                    {!! Form::open(['route' => ['number.store']]) !!}
                    @endif
                    <div class="form-group">
                        {!! Form::label('client_number', trans('application.client_number_prefix')) !!}
                        {!! Form::text('client_number', null, ['class' => "form-control input-sm"]) !!}
                    </div>
                    <div class="form-group">
                        {!! Form::label('invoice_number', trans('application.invoice_number_prefix')) !!}
                        {!! Form::text('invoice_number', null, ['class' => "form-control input-sm"]) !!}
                    </div>
                    <div class="form-group">
                        {!! Form::label('estimate_number', trans('application.estimate_number_prefix')) !!}
                        {!! Form::text('estimate_number', null, ['class' => "form-control input-sm"]) !!}
                    </div>
                    <div class="form-group">
                        {!! Form::submit(trans('application.save_settings'), ['class="btn btn-sm btn-primary"']) !!}
                    </div>
                    {!! Form::close() !!}
                </div>
            </div>
        </div>
    </div>
</section>
@endsection
