@extends('layouts.customer')
@section('title', __('Support Ticket'))
@section('page-title', __('Support Ticket'))
@push('styles')
@endpush
@push('scripts')
@endpush
@section('content')
{{ $ticket->subject }}
#{{ $ticket->id }} ยท {{ __('Status:') }} {{ ucfirst($ticket->status) }}
@customercan('support.permissions.can_close_tickets')
@if($ticket->status !== 'closed')
@endif
@endcustomercan
{{ __('Back') }}
@foreach($messages as $message)
@php
$sender = $message->sender;
$isCustomer = $sender instanceof \App\Models\Customer;
@endphp
{{ $isCustomer ? __('You') : __('Support') }}
{{ $message->created_at->diffForHumans() }}
{!! $message->body_for_display !!}
@endforeach
@customercan('support.permissions.can_reply_tickets')
@if($ticket->status !== 'closed')
@endif
@endcustomercan
@endsection