@php $data = $this->getComputedData(); $inputClass = 'rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-white px-3 py-2 text-sm shadow-sm focus:ring-2 focus:ring-primary-500 focus:outline-none'; $typeColors = [ 'upwork' => 'bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300', 'linkedin' => 'bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300', 'local' => 'bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-300', 'website' => 'bg-orange-100 text-orange-800 dark:bg-orange-900/30 dark:text-orange-300', ]; @endphp
{{-- FILTER BAR --}}
{{ count($data) }} platform
{{-- PLATFORM TABLE --}}
@forelse ($data as $row) @empty @endforelse
Platform Badge Connect Profile View Boost Profile Impression Click Entries Aksi
{{ $row['name'] }} @if($row['type']) {{ ucfirst($row['type']) }} @endif
{{ number_format($row['total_badge_connect']) }} {{ number_format($row['total_profile_view']) }} {{ number_format($row['total_boost_profile']) }} {{ number_format($row['total_impression']) }} {{ number_format($row['total_click']) }} {{ $row['entry_count'] }}
Belum ada platform. Tambahkan platform terlebih dahulu.
{{-- HISTORY SLIDE-OVER --}} @if($historyPlatformId) @php $history = $this->getHistoryData(); @endphp
{{-- Backdrop --}}
{{-- Panel --}}
{{-- Header --}}

Riwayat — {{ $historyPlatformName }}

{{ count($history) }} entri

{{-- Table --}}
@if(count($history) > 0) @foreach($history as $entry) @endforeach
Tanggal Badge View Boost Impr. Click Aksi
{{ \Carbon\Carbon::parse($entry['date'])->format('d M Y') }} {{ number_format($entry['badge_connect']) }} {{ number_format($entry['total_profile_view']) }} {{ number_format($entry['boost_profile']) }} {{ number_format($entry['total_impression']) }} {{ number_format($entry['click']) }}
@else
Belum ada entri untuk platform ini.
@endif
@endif