diff --git a/app/Filament/Resources/TokenResource.php b/app/Filament/Resources/TokenResource.php
index baa9332f..cf831ae6 100644
--- a/app/Filament/Resources/TokenResource.php
+++ b/app/Filament/Resources/TokenResource.php
@@ -21,10 +21,22 @@ class TokenResource extends Resource
protected static ?string $navigationIcon = 'heroicon-o-key';
- // tambahkan ini supaya muncul di MANAGEMENT
protected static ?int $navigationSort = 5;
- protected static ?string $navigationGroup = 'Management';
- protected static ?string $navigationLabel = 'Tokens';
+
+ protected static function getNavigationLabel(): string
+ {
+ return __('Tokens');
+ }
+
+ public static function getPluralLabel(): ?string
+ {
+ return static::getNavigationLabel();
+ }
+
+ protected static function getNavigationGroup(): ?string
+ {
+ return __('Management');
+ }
public static function form(Form $form): Form
{
diff --git a/app/Http/Controllers/Api/TicketController.php b/app/Http/Controllers/Api/TicketController.php
new file mode 100644
index 00000000..11e79ed5
--- /dev/null
+++ b/app/Http/Controllers/Api/TicketController.php
@@ -0,0 +1,56 @@
+find($id);
+
+ if (! $ticket) {
+ return response()->json([
+ 'message' => 'Ticket not found',
+ ], 404);
+ }
+
+ return $this->formatTicketResponse($ticket);
+ }
+
+ /**
+ * Format response JSON untuk ticket
+ */
+ protected function formatTicketResponse(Ticket $ticket)
+ {
+ $content = $ticket->content;
+
+ // Ganti
dan