@extends('layouts.app') @section('title', __('Support')) @section('content')
{{-- KONTAK CEPAT --}}
{{ app()->getLocale() === 'id' ? 'HUBUNGI KAMI' : 'CONTACT US' }}
@if($whatsapp)
WhatsApp
{{ $whatsapp }}
@endif @if($telegram)
Telegram
{{ app()->getLocale() === 'id' ? 'Klik untuk chat' : 'Click to chat' }}
@endif
{{-- FORM TIKET --}}
{{ app()->getLocale() === 'id' ? 'BUAT TIKET BARU' : 'OPEN NEW TICKET' }}
@csrf
@error('subject')
{{ $message }}
@enderror
@error('message')
{{ $message }}
@enderror
{{-- LIST TIKET --}}
{{ app()->getLocale() === 'id' ? 'RIWAYAT TIKET' : 'TICKET HISTORY' }}
@forelse($tickets as $ticket)
{{ $ticket->subject }}
{{ strtoupper($ticket->status) }}
{{ Str::limit($ticket->message, 100) }}
{{ $ticket->created_at->format('d M Y, H:i') }}
@if($ticket->admin_reply) {{ app()->getLocale() === 'id' ? 'Sudah dibalas' : 'Replied' }} @else {{ app()->getLocale() === 'id' ? 'Menunggu balasan' : 'Awaiting reply' }} @endif
@empty
{{ app()->getLocale() === 'id' ? 'Belum ada tiket' : 'No tickets yet' }}
@endforelse
@endsection