create.blade.php 2.6 KB
@extends ('backend.layouts.app')

@section ('title', trans('labels.backend.explain.management') . ' | ' . trans('labels.backend.explain.create'))

@section('page-header')
    <h1>
        {{ trans('labels.backend.explain.management') }}
        <small>{{ trans('labels.backend.explain.create') }}</small>
    </h1>
@endsection

@section('content')
    {{ Form::open(['route' => 'admin.explain.store', 'class' => 'form-horizontal', 'method' => 'post']) }}

    <div class="box box-success">
        <div class="box-header with-border">
            <h3 class="box-title">{{ trans('labels.backend.explain.create') }}</h3>

            <div class="box-tools pull-right">
                @include('backend.explain.includes.partials.explain-header-button')
            </div><!--box-tools pull-right-->
        </div><!-- /.box-header -->

        <div class="box-body">
            <div class="form-group">
                {{ Form::label('spot_id', trans('validation.attributes.backend.explain.input.spot_id'), ['class' => 'col-lg-2 control-label']) }}

                <div class="col-lg-10">
                    {{ Form::select('spot_id', $info,'all', ['class' => 'form-control','placeholder' => trans('validation.attributes.backend.explain.input.spot_id')]) }}
                </div><!--col-lg-10-->
            </div><!--form control-->

            <div class="form-group">
                {{ Form::label('spotname', trans('validation.attributes.backend.explain.input.spotname'), ['class' => 'col-lg-2 control-label']) }}
                <div class="col-lg-10">
                    {{ Form::text('spotname', null, ['class' => 'form-control', 'maxlength' => '20', 'required' => 'required', 'autofocus' => 'autofocus','placeholder' => trans('validation.attributes.backend.explain.input.spotname')]) }}


                </div><!--col-lg-3-->
            </div><!--form control-->
            
            <div class="box box-success">
                <div class="box-body">
                    <div class="pull-left">
                        {{ link_to_route('admin.device.index', trans('buttons.general.cancel'), [], ['class' => 'btn btn-danger btn-xs']) }}
                    </div><!--pull-left-->

                    <div class="pull-right">
                        {{ Form::submit(trans('buttons.general.crud.create'), ['class' => 'btn btn-success btn-xs']) }}
                    </div><!--pull-right-->

                    <div class="clearfix"></div>
                </div><!-- /.box-body -->
            </div><!--box-->

    {{ Form::close() }}
@endsection

@section('after-scripts')
    {{ Html::script('js/backend/access/roles/script.js') }}
@endsection