{{-- Header --}}
{{-- Filters Panel --}}
{{--
@if(Auth::user()->is_bo)
@endif
--}}
{{-- Main Content --}}
{{ $title }}
{{-- Add Project Source --}}
@if(Auth::user()->is_bo || Auth::user()->is_any_partner_role)
@endif
{{-- Stats Cards --}}
{{-- Usage Chart --}}
{{--
--}}
{{-- Project Sources List --}}
{{-- Recent Activity --}}
{{-- Statistics Section --}}
{{-- Total Sources Card --}}
{{-- Active Sources Card --}}
{{-- Inactive Sources Card --}}
{{-- My Sources Card --}}
@if(Auth::user()->is_any_partner_role)
{{-- Assigned to Me Card --}}
{{--
--}}
@endif
{{ __('Total Origins') }}
{{ number_format($this->stats['total']) }}
{{ __('origins') }}
{{ __('Active') }}
{{ number_format($this->stats['active']) }}
{{ $this->stats['total'] > 0 ? round(($this->stats['active'] / $this->stats['total']) * 100) : 0 }}%
{{ __('Inactive') }}
{{ number_format($this->stats['inactive']) }}
{{ $this->stats['total'] > 0 ? round(($this->stats['inactive'] / $this->stats['total']) * 100) : 0 }}%
{{ __('My Origins') }}
{{ number_format($this->stats['my_sources']) }}
{{ __('created') }}
{{ __('Assigned to Me') }}
{{ number_format($this->stats['assigned_to_me']) }}
{{ __('assigned') }}
{{ __('Most Used Project Sources') }}
@if(count($this->usageStats) > 0)
@endif
@foreach($this->usageStats as $source)
@endforeach
@else
{{ $source['name'] }}
{{ number_format($source['total_projects']) }} {{ __('projects') }}
@php
$maxUsage = collect($this->usageStats)->max('total_projects');
$percentage = $maxUsage > 0 ? ($source['total_projects'] / $maxUsage) * 100 : 0;
@endphp
{{ __('No usage data available') }}
{{ __('Project Origins List') }}
@livewire('project-sources.project-sources-table', ['title' => ''])
{{ __('Recent Projects') }}
@if($this->recentActivity->count() > 0)
@endif
@foreach($this->recentActivity as $project)
@endforeach
@else
{{ __('No recent activity') }}
{{ __('Usage Statistics') }}
@if(count($this->categoryBreakdown) > 0)
@endif
{{-- Usage by Category --}}
{{-- Performance Metrics --}}
@else
{{ __('Usage by Project Category') }}
@foreach($this->categoryBreakdown as $breakdown)
@endforeach
{{ $breakdown['source_name'] }}
{{ __('Total Projects') }}: {{ number_format($breakdown['total_projects']) }}
@foreach($breakdown['categories'] as $category)
{{ $category['category_name'] }}
{{ number_format($category['project_count']) }}
@endforeach
{{ __('Performance Metrics') }}
{{ number_format($this->stats['total']) }}
{{ __('Total Origins') }}
{{ __('Available project sources') }}
{{ $this->stats['total'] > 0 ? round(($this->stats['active'] / $this->stats['total']) * 100) : 0 }}%
{{ __('Active Rate') }}
{{ __('Active origins vs total') }}
@php
$avgUsage = collect($this->usageStats)->avg('total_projects') ?? 0;
@endphp
{{ number_format($avgUsage, 1) }}
{{ __('Avg Usage') }}
{{ __('Average projects per origin') }}
{{ __('No statistics data available') }}
{{ __('Create some project origins and assign them to projects to see usage statistics.') }}