@extends('layouts.app') @section('content')
Trang chủ Tracking

Tracking

Theo dõi nguồn traffic và tiếp nhận tư vấn theo UTM.

@forelse($trackings as $tracking) @empty @endforelse
Họ tên Số điện thoại Source Medium Campaign Term User Id Ngày ghi nhận Tiếp nhận tư vấn Thao tác
{{ $tracking->student_name ?? 'N/A' }} {{ $tracking->student_phone ?? 'N/A' }} {{ $tracking->utm_source ?? '—' }} {{ $tracking->utm_medium ?? '—' }} {{ $tracking->utm_campaign ?? '—' }} {{ $tracking->utm_term ?? '—' }} {{ $tracking->user_id ?? '—' }} {{ $tracking->created_at ? $tracking->created_at->addHours(7)->format('H:i d/m/Y') : 'N/A' }}

Không có dữ liệu

@if($trackings->hasPages())
Hiển thị {{ $trackings->firstItem() ?? 0 }} - {{ $trackings->lastItem() ?? 0 }} trong tổng số {{ $trackings->total() }} bản ghi
@if($trackings->onFirstPage()) @else @endif @php $trackings->appends(request()->query()); $currentPage = $trackings->currentPage(); $lastPage = $trackings->lastPage(); $onEachSide = 1; $start = max(2, $currentPage - $onEachSide); $end = min($lastPage - 1, $currentPage + $onEachSide); @endphp {{-- Page 1 --}} @if($currentPage == 1) 1 @else 1 @endif {{-- Start Ellipsis --}} @if($start > 2) ... @endif {{-- Middle Pages --}} @for($i = $start; $i <= $end; $i++) @if($i == $currentPage) {{ $i }} @else {{ $i }} @endif @endfor {{-- End Ellipsis --}} @if($end < $lastPage - 1) ... @endif {{-- Last Page --}} @if($lastPage > 1) @if($currentPage == $lastPage) {{ $lastPage }} @else {{ $lastPage }} @endif @endif @if($trackings->hasMorePages()) @else @endif
@endif
@endsection