@extends('layouts.app') @section('title', 'Lịch sử chuyển đổi') @section('content')
Chọn các dòng cần xóa hoặc quản lý link
| Thời gian | Kênh Zalo | Khách hàng | Link gốc | Link rút gọn | Lượt click | Trạng thái | Hành động | |
|---|---|---|---|---|---|---|---|---|
| {{ $history->created_at->format('H:i:s d/m/Y') }} |
@if($history->zalo_thread_id)
{{ $history->zalo_chat_name ?? 'Nhóm Zalo' }}
ID: {{ $history->zalo_thread_id }}
|
@if($history->customer_name || $history->customer_phone) {{ $history->customer_name ?: 'Ẩn danh' }} @if($history->customer_phone) {{ $history->customer_phone }} @endif @else - @endif | {{ $history->original_url }} | @if($history->code) @php $domainSetting = app(\App\Services\SettingService::class)->get('short_link_domain'); if ($domainSetting) { $shortUrl = rtrim($domainSetting, '/') . '/aff/s/' . $history->code; } else { $shortUrl = route('short_link.redirect', ['code' => $history->code]); } @endphp @elseif($history->affiliate_url) {{ $history->affiliate_url }} @else - @endif | {{ number_format($history->clicks) }} | @if($history->status === 'success') Thành công @elseif($history->zalo_thread_id && $history->status === 'failed' && str_contains($history->error_message, 'restricted')) Bị chặn (Whitelist) @else Thất bại @endif | ||
| Không tìm thấy lịch sử nào. | ||||||||