@section('header')
	@include('common.header')
@stop

@section('content')
	<div class="row">
		<div class="col-sm-8">
			<div class="widget widget-classic">
				<div class="widget-content">
					<p class="lead">Add a new REST Client</p>

					@if (Session::has('error'))
						<div class="alert alert-danger">
							<i class="fa fa-exclamation-circle"></i> {!! Session::get('error') !!}
						</div>
					@endif

					<form method="POST" action="{{ route('admin.settings.rest.store') }}" class="form-horizontal form-edit">
						@csrf

						<!-- Include form fields -->
						@include('admin::settings.rest.partials.form-fields')

						<div class="text-right form-actions">
							<button type="submit" class="btn btn-primary">Create</button>
							<a href="{!! URL::route('admin.settings.rest.index') !!}" class="btn btn-default">Cancel</a>
						</div>
					</form>

				</div>
			</div>
		</div>
		<div class="col-sm-4">
			@include('admin::settings.rest.partials.info')
		</div>
	</div>
@stop