@extends('member') @section('page-title')

@lang('modules.ticket.details')

@if($ticket->status!='closed') @lang('modules.ticket.markclosed') @elseif($ticket->status=='closed' && $ticket->emp_id==$user->id) @lang('modules.ticket.reopen') @endif
@endsection @push('head-script') @endpush @section('content') @if (isset($status))
@endif
@lang('modules.ticket.details')
{!! Form::model($ticket, ['id'=>'viewTicket','method' => 'post']) !!}

#{{ $ticket->id }} {{ $ticket->subject }}


{{ $ticket->severity }}

{{ $ticket->ticket_type }}

{{ $ticket->status }}

@if($ticket->created_by_id > 0) @if($ticket->created_by == 'U') {{ $ticket->createdByU->name }} @else {{ $ticket->createdByE->name }} @endif @endif

{{ $ticket->employee->name }}

@if($ticket->assigned_to!=0) {{ $agent->name }} @endif
@foreach($ticket->getMedia('attachments') as $attachment)
@if($attachment->mime_type=="application/msword" || $attachment->mime_type=="appplication/docx" || $attachment->mime_type=="appplication/doc") attachment @elseif($attachment->mime_type=="application/pdf") attachment @else attachment @endif
@endforeach
{{ $ticket->description }}
@foreach($replies as $reply)
{{ $reply->comment }}
@endforeach
@if($ticket->status!='closed')
{!! $errors->first('comment', '')!!}
@endif {!! Form::close() !!}
@endsection @push('footer-script') @endpush