@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
Sync History - {{ $title_menu }}
Kembali

{{-- Display session messages (success, warning, error) --}} @if(session('message'))
@php $alertClass = session('class', 'info'); $icon = match($alertClass) { 'success' => 'check-circle', 'warning' => 'exclamation-triangle', 'danger' => 'times-circle', default => 'info-circle' }; @endphp
@endif
@if($sync_list->count() > 0)
@foreach($sync_list as $sync) @endforeach
ID Report Type Tahun Status Progress Total Records Requested By Waktu
{{ $sync->id }} @php $reportTypeLabels = [ 'ZVBILLING' => 'Billing', 'ZFFINANCE_YIELD' => 'Finance Yield', 'Z_GET_NEW_CUST' => 'Customer Master', 'Z_GET_PAYMENT' => 'Payment', 'Z_GET_ONHAND' => 'Sales On Hand' ]; @endphp {{ $reportTypeLabels[$sync->report_type] ?? $sync->report_type }} {{ $sync->sync_year }} @php $statusClass = match($sync->status) { 'completed' => 'success', 'failed' => 'danger', 'processing' => 'primary', default => 'warning' }; @endphp {{ strtoupper($sync->status) }} @if($sync->total_records > 0) @php $percent = round(($sync->processed_records / $sync->total_records) * 100, 1); @endphp
{{ $percent }}%
@else - @endif
{{ number_format($sync->total_records) }} {{ $sync->requested_by ?? '-' }} Created: {{ date('d-m-Y H:i', strtotime($sync->created_at)) }}
@if($sync->completed_at) Completed: {{ date('d-m-Y H:i', strtotime($sync->completed_at)) }} @endif
{{-- Pagination --}}
{{ $sync_list->links('pagination::bootstrap-5') }}
@else

Belum ada history sync.

Mulai Sync
@endif
@push('css') @endpush @push('js') @endpush @endsection