@extends('layouts.app') @push('styles') @endpush @section('filter-section')
@lang('app.reply') @if ($ticket->status != 'closed') @lang('app.close') @endif @if (user()->is_superadmin) @lang('app.delete') @endif
@endsection @section('content')

{{ $ticket->subject }}

@lang('modules.tickets.requestedOn') {{ $ticket->created_at->timezone(global_setting()->timezone)->format(global_setting()->date_format . ' ' . global_setting()->time_format) }}

@if ($ticket->status == 'open') @php $statusColor = 'red'; @endphp @elseif($ticket->status == 'pending') @php $statusColor = 'yellow'; @endphp @elseif($ticket->status == 'resolved') @php $statusColor = 'dark-green'; @endphp @elseif($ticket->status == 'closed') @php $statusColor = 'blue'; @endphp @endif

{!! $ticket->badge('span') !!}

@foreach ($ticket->reply as $reply) @endforeach

@lang('app.to'): {{ $ticket->requester->name }}

@lang('app.reply') @lang('app.back')
@lang('app.cancel')
@if (user()->is_superadmin)
@endif
@endsection @push('scripts') @endpush