{{ $ticket->subject }}
@lang('modules.tickets.requestedOn')
{{ $ticket->created_at->timezone(company()->timezone)->format(company()->date_format . ' ' . company()->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
@foreach ($ticket->reply as $reply)
@endforeach
@if ($editTicketPermission == 'all'
|| ($editTicketPermission == 'added' && user()->id == $ticket->added_by)
|| ($editTicketPermission == 'owned' && (user()->id == $ticket->user_id || $ticket->agent_id == user()->id))
|| ($editTicketPermission == 'both' && (user()->id == $ticket->user_id || $ticket->agent_id == user()->id || $row->added_by == user()->id)))
@else
@lang('app.submit')
@endif
@if (!in_array('client', user_roles()))
@endif
@lang('app.cancel')