@extends('layouts.admin') @section('title', __('Products & Services Dashboard')) @section('content')

{{ __('Products & Services') }}

{{ __('Manage your software products and services') }}

{{ __('View Products') }} {{ __('View Services') }} {{ __('Categories') }}
{{ __('Total Products') }}
{{ $stats['total_products'] }}
{{ __('Total Services') }}
{{ $stats['total_services'] ?? 0 }}
{{ __('Active Products') }}
{{ $stats['active_products'] ?? 0 }}
{{ __('Active Services') }}
{{ $stats['active_services'] ?? 0 }}
{{ __('Recent Products') }}
@if($recentProducts->count() > 0)
@foreach($recentProducts as $product) @endforeach
{{ __('Name') }} {{ __('Category') }} {{ __('Version') }} {{ __('Status') }} {{ __('Featured') }} {{ __('Actions') }}
{{ $product->name }} @if($product->is_featured) @endif {{ $product->category->name ?? 'Uncategorized' }} {{ $product->version ?: 'N/A' }} {{ $product->is_active ? __('Active') : __('Inactive') }} {{ $product->is_featured ? __('Featured') : __('Not Featured') }}
@csrf @method('DELETE')
@else

{{ __('No products found. Create your first product!') }}

{{ __('Create New Product') }}
@endif
{{ __('Categories Overview') }}
{{ __('Product Categories') }}
@php $productCategories = \App\Models\ProductCategory::active()->ordered()->limit(3)->get(); @endphp @if($productCategories->count() > 0)
    @foreach($productCategories as $category)
  • {{ $category->name }} {{ $category->products()->count() }}
  • @endforeach
@if(\App\Models\ProductCategory::count() > 3) {{ __('View All') }} @endif @else

{{ __('No product categories') }}

@endif
{{ __('Service Categories') }}
@php $serviceCategories = \App\Models\ServiceCategory::active()->ordered()->limit(3)->get(); @endphp @if($serviceCategories->count() > 0)
    @foreach($serviceCategories as $category)
  • {{ $category->name }} {{ $category->services()->count() }}
  • @endforeach
@if(\App\Models\ServiceCategory::count() > 3) {{ __('View All') }} @endif @else

{{ __('No service categories') }}

@endif
@endsection @push('styles') @endpush @push('scripts') @endpush