@extends('layouts.app')
@section('title', __('Support') . ' - ' . $ticket->subject)
@section('content')
{{-- INFO TIKET --}}
{{ app()->getLocale() === 'id' ? 'INFO TIKET' : 'TICKET INFO' }}
{{ strtoupper($ticket->status) }}
{{ $ticket->subject }}
{{ $ticket->created_at->format('d M Y, H:i') }}
{{-- PESAN AWAL USER --}}
{{ app()->getLocale() === 'id' ? 'PESAN KAMU' : 'YOUR MESSAGE' }}
{{ $ticket->message }}
{{-- THREAD REPLIES --}}
@if($ticket->replies->count() > 0)
{{ app()->getLocale() === 'id' ? 'PERCAKAPAN' : 'CONVERSATION' }}
@foreach($ticket->replies as $reply)
{{ $reply->is_admin ? 'Admin' : auth()->user()->name }} ยท {{ $reply->created_at->format('d M Y, H:i') }}
{{ $reply->message }}
@endforeach
@endif
{{-- FORM REPLY --}}
@if($ticket->status !== 'closed')
{{ app()->getLocale() === 'id' ? 'BALAS TIKET' : 'REPLY TICKET' }}
@if(session('success'))
{{ session('success') }}
@endif
@else
{{ app()->getLocale() === 'id' ? 'Tiket ini sudah ditutup' : 'This ticket is closed' }}
@endif
{{ app()->getLocale() === 'id' ? 'Kembali ke Support' : 'Back to Support' }}
@endsection