@extends('layouts.default') {{-- Page title --}} @section('title') @if ($item->id) {{ $updateText }} @else {{ $createText }} @endif @parent @stop @section('header_right') <a href="{{ URL::previous() }}" class="btn btn-primary pull-right"> {{ trans('general.back') }}</a> @stop {{-- Page content --}} @section('content') <!-- row --> <div class="row"> <!-- col-md-8 --> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 col-sm-12 col-sm-offset-0"> <form id="create-form" class="form-horizontal" method="post" action="{{ (isset($formAction)) ? $formAction : \Request::url() }}" autocomplete="off" role="form" enctype="multipart/form-data"> <!-- box --> <div class="box box-default"> <!-- box-header --> <div class="box-header with-border text-right"> <div class="col-md-12 box-title text-right" style="padding: 0px; margin: 0px;"> <div class="col-md-12" style="padding: 0px; margin: 0px;"> <div class="col-md-9 text-left"> @if ($item->id) <h2 class="box-title text-left" style="padding-top: 8px;"> {{ $item->display_name }} </h2> @endif </div> <div class="col-md-3 text-right" style="padding-right: 10px;"> <a class="btn btn-link text-left" href="{{ URL::previous() }}"> {{ trans('button.cancel') }} </a> <button type="submit" class="btn btn-primary"> <i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.save') }} </button> </div> </div> </div> </div><!-- /.box-header --> <!-- box-body --> <div class="box-body"> @if ($item->id) {{ method_field('PUT') }} @endif <!-- CSRF Token --> {{ csrf_field() }} @yield('inputFields') @include('partials.forms.edit.submit') </div> <!-- ./box-body --> </div> <!-- box --> </form> </div> <!-- col-md-8 --> </div><!-- ./row --> @stop