@php $canCreate = auth()->user()->can('create', \App\Models\Target::class); $canAssign = auth()->user()->can('assign', \App\Models\Target::class); $canUpdate = app(\App\Support\WorkspaceContext::class)->can(\App\Enums\PermissionEnum::TargetsUpdate); $canDelete = app(\App\Support\WorkspaceContext::class)->can(\App\Enums\PermissionEnum::TargetsDelete); $pageIds = $targets->pluck('id')->map(fn ($id) => (string) $id)->all(); $pageAllChecked = $pageIds !== [] && count(array_diff($pageIds, $selected)) === 0; $selectedCount = $selectAllMatching ? $totalMatching : count($selected); $hasFilters = filled($search) || filled($province) || filled($city) || filled($status) || filled($priority) || filled($assignee) || filled($listId) || filled($followup); @endphp
لیست شمارههای هدف؛ فیلتر بر اساس استان، پیگیری، تخصیص به کارشناس و اولویتبندی.
لیست «{{ $lastImport['name'] }}» وارد شد.
از {{ number_format($lastImport['total']) }} ردیف: {{ number_format($lastImport['imported']) }} تارگت جدید ثبت شد، {{ number_format($lastImport['duplicate']) }} شماره تکراری (قبلاً ثبت بود یا در فایل تکرار شده) نادیده گرفته شد، {{ number_format($lastImport['invalid']) }} شماره نامعتبر رد شد.
| تارگت | استان / شهر | وضعیت | اولویت | مسئول | اقدام بعدی | ||
|---|---|---|---|---|---|---|---|
|
{{ $target->name ?: '—' }}
{{ $target->mobile }}
@if ($target->company)
{{ $target->company }}
@endif
|
{{ $target->province ?: '—' }} @if ($target->city) / {{ $target->city }} @endif | @if ($canEditRow) @else {{ $target->status->label() }} @endif | @if ($canEditRow) @else {{ $target->priority->label() }} @endif | @if ($canAssign) @else {{ $target->assignee?->name ?: '—' }} @endif | @if ($target->next_followup_at) @php($due = \Illuminate\Support\Carbon::parse($target->next_followup_at)) $due->isPast(), 'text-gray-600' => ! $due->isPast()])>@ldatetime($due) @else — @endif | مشاهده | |
| {{ $hasFilters ? 'تارگتی با این فیلترها پیدا نشد.' : 'هنوز تارگتی ثبت نشده است. با «ورود از اکسل» یک لیست وارد کنید.' }} | |||||||
{{ $hasFilters ? 'تارگتی با این فیلترها پیدا نشد.' : 'هنوز تارگتی ثبت نشده است.' }}
@endforelse