@push('styles') @endpush {{-- Settings Toggle Button --}} {{-- Settings Panel --}}

تنظیمات ویجت‌ها

{{-- Widgets Wrapper --}}
{{-- Stat Cards --}}
{{-- Total Products (First) --}}

تعداد کل تامین کننده ها

{{ $stats['total']['value'] }}

@if(isset($stats['total']['change']))

{{ $stats['total']['change'] }}

@endif
{{-- Average Rating (Second) --}}

میانگین امتیاز

{{ $stats['average_rating']['value'] }}

@if(isset($stats['average_rating']['change']))

{{ $stats['average_rating']['change'] }}

@endif
{{-- Active Suppliers (Third) --}}

تامین‌کنندگان فعال

{{ $stats['active']['value'] }}

@if(isset($stats['active']['change']))

{{ $stats['active']['change'] }}

@endif
{{-- Blacklisted Suppliers (Fourth) --}}

تامین‌کنندگان بلک‌لیست

{{ $stats['blacklisted']['value'] }}

@if(isset($stats['blacklisted']['change']))

{{ $stats['blacklisted']['change'] }}

@endif
{{-- Incomplete Suppliers (Fifth) --}}

تکمیل نبودن اطلاعات

{{ number_format($incompleteSuppliersCount ?? 0) }}

{{-- Charts Section --}}
{{-- Industry Distribution Chart --}}

تامین‌کنندگان بر اساس صنعت

@php $radius = 20; $circumference = 2 * M_PI * $radius; $cumulativePercent = 0; $totalPercent = collect($industryDistribution)->sum('value'); @endphp @foreach($industryDistribution as $index => $item) @php $percent = $item['value']; $offset = $circumference - ($cumulativePercent / 100) * $circumference; $dasharray = ($percent / 100) * $circumference; $cumulativePercent += $percent; // Map Tailwind colors to actual hex values $colorMap = [ 'bg-blue-500' => '#3b82f6', 'bg-green-500' => '#22c55e', 'bg-yellow-500' => '#eab308', 'bg-orange-500' => '#f97316', 'bg-purple-500' => '#a855f7', 'bg-pink-500' => '#ec4899', 'bg-indigo-500' => '#6366f1', 'bg-gray-500' => '#6b7280', ]; $strokeColor = $colorMap[$item['color']] ?? '#6b7280'; @endphp @endforeach
100%
@foreach($industryDistribution as $item)
{{ $item['name'] }} ({{ $item['value'] }}٪)
@endforeach
{{-- Top Suppliers --}}

۵ تامین کننده برتر

@forelse($topSuppliers as $index => $supplier)
{{ $index + 1 }}
{{ mb_substr($supplier['name'], 0, 1) }}

{{ $supplier['name'] }}

{{ $supplier['purchase_count'] ?? 0 }} خرید

{{ $supplier['rating'] ?? '0.0' }}
@empty

هیچ تامین‌کننده‌ای یافت نشد

@endforelse
{{-- End Widgets Wrapper --}}
@push('scripts') @endpush {{-- Incomplete Suppliers Modal --}}