@extends('layouts.app') @section('title', 'Editing ticket - ' . $ticket->subject . ' | ' . Options::get('title') ) @section('content')

Editing ticket - {{ $ticket->subject }}

{{ Form::model($ticket, [ 'route' => ['edit.post.ticket', $ticket->id], 'method' => 'post', 'id' => 'createTicket', 'enctype' => 'multipart/form-data' ])}} {{-- Including the session flash success message --}} @include('partials.site.flash.success')
{{ Form::text('subject', null, ['class' => 'form-control subject', 'placeholder' => 'Subject' ]) }}
{{ Form::select('department_id', $departments, $ticket->department_id, ['class' => 'form-control department']) }}
{{ Form::textarea('message', null, ['class' => 'form-control message', 'placeholder' => 'Type your message here', 'wrap' => 'hard', 'onkeyup' => 'autoGrow(this);' ]) }}
@if( $ticket->files )
Attached File:
@endif
{{-- Show warning message --}} @if( $ticket->files )
By attacting new file, old file will be deleted. You can not attach more than 1 file.
@endif {{-- Including the error message --}} @include('partials.site.flash.error')
@endsection