@extends('layouts.app') @php $pageTitle = 'Command History'; $pageHeading = 'Command Monitoring'; $pageDescription = 'Monitoring semua command mesin: queued, sent, success, dan error dalam satu halaman.'; $tableThemeClass = 'ops-datatable-theme ops-datatable-theme--commands'; @endphp @section('content')
Total Command {{ number_format($summary['total']) }}
Pending {{ number_format($summary['pending']) }}
Success {{ number_format($summary['success']) }}
Error {{ number_format($summary['error']) }}
Reset

Manual Command

Kirim command mentah untuk testing atau recovery mesin.

@csrf
Bisa pilih satu atau banyak mesin sekaligus.
Re-pull transaksi: gunakan menu Devices melalui Soft re-sync, Hard re-log, atau Re-log by date. Beberapa mesin menolak QUERY ATTLOG manual dengan hasil -1002.

Bulk Hapus User dari Mesin

Paste ID user dari Excel. Sistem membaca kolom pertama setiap baris.

@csrf
Bisa pilih satu atau banyak mesin sekaligus.
Format yang didukung: satu kolom Excel, hasil copy multi kolom, atau daftar yang dipisahkan enter/tab/koma.

All Device Commands

History command mesin. Gunakan tombol Lihat untuk membuka isi command lengkap.

{{ number_format($commands->total()) }} record
@forelse ($commands as $command) @empty @endforelse
ID Terminal Command Context Queued Sent Returned Result
{{ $command->id }}
{{ $command->terminal_alias ?: ($command->terminal_sn ?: ('Terminal #' . ($command->terminal_id ?? '-'))) }}
@if (($command->terminal_alias ?: null) && ($command->terminal_sn ?: null))
{{ $command->terminal_sn }}
@endif @if (!$command->terminal_alias && !$command->terminal_sn && !empty($command->terminal_id))
terminal_id: {{ $command->terminal_id }}
@endif
{{ \Illuminate\Support\Str::limit($command->content, 90) }}
@if ($command->context_label) {{ $command->context_label }} @else - @endif {{ $command->commit_time }} {{ $command->transfer_time ?: '-' }} {{ $command->return_time ?: '-' }} result_detail)) title="{{ $command->result_detail }}" @endif > {{ $command->result_label }} @if (($command->result_class ?? '') === 'success-operlog')
ACK: OPERLOG
@endif @if ($command->return_time === null)
@csrf @method('DELETE')
@endif
Belum ada history command.
Menampilkan {{ $commands->firstItem() ?? 0 }}-{{ $commands->lastItem() ?? 0 }} dari {{ $commands->total() }} command
{{ $commands->onEachSide(1)->links() }}
@endsection @push('scripts') @endpush