@extends('layouts.app') @section('title', 'Toplu İşlem Geçmişi') @section('content')

Toplu İşlem Geçmişi

Ürünler üzerinde yapılan toplu işlemlerin (gizle, stok yok, indirim) geçmişini görüntüleyin.

@if($operationType || $status) Filtreleri Kaldır @endif
@if($operations->isEmpty())

Henüz toplu işlem kaydı bulunmuyor.

@else
@foreach($operations as $operation) @endforeach
Tarih İşlem Tipi Kullanıcı Ürün Sayısı Başarılı / Başarısız WordPress Senkronizasyonu Durum Detaylar
{{ $operation->created_at->format('d.m.Y') }}
{{ $operation->created_at->format('H:i:s') }}
@php $operationIcons = [ 'product_bulk_hide' => ['icon' => 'fa-eye-slash', 'color' => 'gray'], 'product_bulk_out_of_stock' => ['icon' => 'fa-box-open', 'color' => 'orange'], 'product_bulk_discount' => ['icon' => 'fa-percent', 'color' => 'green'], ]; $opInfo = $operationIcons[$operation->operation_type] ?? ['icon' => 'fa-cog', 'color' => 'blue']; @endphp {{ $operationTypes[$operation->operation_type] ?? $operation->operation_type }} @if($operation->parameters && isset($operation->parameters['discount_percent']))
İndirim: %{{ $operation->parameters['discount_percent'] }}
@endif
{{ $operation->user->name ?? 'Sistem' }} {{ count($operation->target_ids ?? []) }} ürün
{{ $operation->success_count }} / {{ $operation->failed_count }}
@if($operation->result && isset($operation->result['wordpress_synced'])) {{ $operation->result['wordpress_synced'] }} senkronize @else - @endif @php $statusColors = [ 'completed' => ['bg' => 'green', 'text' => 'green'], 'failed' => ['bg' => 'red', 'text' => 'red'], 'pending' => ['bg' => 'yellow', 'text' => 'yellow'], 'running' => ['bg' => 'blue', 'text' => 'blue'], ]; $statusInfo = $statusColors[$operation->status] ?? ['bg' => 'gray', 'text' => 'gray']; @endphp @if($operation->status === 'completed') @elseif($operation->status === 'failed') @elseif($operation->status === 'running') @else @endif {{ ucfirst($operation->status) }}
{{ $operations->links() }}
@endif
@push('scripts') @endpush @endsection