37 lines
937 B
PHP
37 lines
937 B
PHP
@extends('admin.layout.base')
|
|
|
|
@section('content')
|
|
<form class="ui form" method="post" action="{{$urls->base}}/admin/notificacion">
|
|
<div class="inline field">
|
|
<label>Título</label>
|
|
<input type="text" name="title" value="{{$notificacion->title}}" />
|
|
</div>
|
|
<div class="six wide field">
|
|
<label>Texto</label>
|
|
<textarea name="text">
|
|
{{$notificacion->text}}
|
|
</textarea>
|
|
</div>
|
|
<div class="inline field">
|
|
<div class="ui slider checkbox" id="activar">
|
|
<label>Activar</label>
|
|
<input type="checkbox" name="active"
|
|
@if ($notificacion->active)
|
|
checked="checked"
|
|
@endif
|
|
/>
|
|
</div>
|
|
</div>
|
|
<button class="ui button">Editar</button>
|
|
</form>
|
|
<br />
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('#activar').checkbox()
|
|
})
|
|
</script>
|
|
@endpush
|