You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
968 B
31 lines
968 B
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<h1 class="page-header">
|
|
{!! link_to_route('options.create', trans('option.create'), [], ['class'=>'btn btn-success pull-right']) !!}
|
|
Options
|
|
</h1>
|
|
|
|
{!! Form::open(['route'=>'options.save', 'method'=>'patch']) !!}
|
|
<table class="table table-condensed">
|
|
<tbody>
|
|
@forelse($options as $option)
|
|
<tr>
|
|
<td>
|
|
{{ str_split_ucwords($option->key) }}
|
|
{!! link_to_route('options.delete', 'x', [$option->id], ['class'=>'btn btn-danger btn-xs pull-right']) !!}
|
|
</td>
|
|
<td>{!! Form::textarea($option->key, $option->value, ['class'=>'form-control','rows'=>3]) !!}</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td>No option found</td>
|
|
</tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
<div class="form-group">
|
|
{!! Form::submit(trans('app.update'), ['class'=>'btn btn-warning']) !!}
|
|
</div>
|
|
{!! Form::close() !!}
|
|
@endsection
|