Skip to content

Instantly share code, notes, and snippets.

@DianSano
Created December 3, 2019 11:05
Show Gist options
  • Select an option

  • Save DianSano/7c967c206d9378201ffd6967da3a24a7 to your computer and use it in GitHub Desktop.

Select an option

Save DianSano/7c967c206d9378201ffd6967da3a24a7 to your computer and use it in GitHub Desktop.
edit.blade.php (Edit a ticket) last update 03/12/2019 18.05
@extends('master')
@section('title', 'Edit a ticket')
@section('content')
<div class="container col-md-8 col-md-offset-2">
<div class="well well bs-component">
<form class="form-horizontal" method="post">
@foreach ($errors->all() as $error)
<p class="alert alert-danger">{{ $error }}</p>
@endforeach
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif
<input type="hidden" name="_token" value="{!! csrf_token() !!}">
<fieldset>
<legend>Edit ticket</legend>
<div class="form-group">
<label for="title" class="col-lg-2 control-label">Title</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="title" name="title" value="{!! $ticket->title !!}">
</div>
</div>
<div class="form-group">
<label for="content" class="col-lg-2 control-label">Content</label>
<div class="col-lg-10">
<textarea class="form-control" rows="3" id="content" name="content">{!! $ticket->content !!}</textarea>
</div>
</div>
<div class="form-group">
<label>
<input type="checkbox" name="status" {!! $ticket->status ? "":"checked" !!}> Close this ticket?
</label>
</div>
<div class="form-group">
<div class="col-lg-10 col-lg-offset-2">
<button class="btn btn-default">Cancel</button>
<button type="submit" class="btn btn-primary">Update</button>
</div>
</div>
</fieldset>
</form>
</div>
</div>
@endsection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment