@extends('layouts.app') @push('styles') @endpush @php $editTicketPermission = user()->permission('edit_tickets'); $deleteTicketPermission = user()->permission('delete_tickets'); $manageTypePermission = user()->permission('manage_ticket_type'); $manageAgentPermission = user()->permission('manage_ticket_agent'); $manageChannelPermission = user()->permission('manage_ticket_channel'); @endphp @section('filter-section')
@lang('app.reply') {{-- add note --}} @if ($ticket->status != 'closed') @lang('app.close') @endif @if ($deleteTicketPermission == 'all' || ($deleteTicketPermission == 'owned' && $ticket->agent_id == user()->id)) @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

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

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

@lang('app.reply') @lang('app.back')
@if ($editTicketPermission == 'all' || ($editTicketPermission == 'owned' && $ticket->agent_id == user()->id) || ($editTicketPermission == 'both' && $ticket->agent_id == user()->id))
@else @lang('app.submit') @endif @if (!in_array('client', user_roles()))
@endif @lang('app.cancel')
@if ($editTicketPermission == 'all' || ($editTicketPermission == 'owned' && $ticket->agent_id == user()->id))
@endif
@endsection @push('scripts') @endpush