@extends('layouts.admin') @section('title', 'Add-on Products') @section('page-title', 'Add-on Products') @section('content')
{{-- Stats --}}

Total Products

{{ $stats['total_products'] }}

Active Products

{{ $stats['active_products'] }}

Total Revenue

{{ number_format((float) $stats['total_revenue'], 2) }}

Completed Purchases

{{ number_format($stats['total_purchases']) }}

{{-- Actions --}}

Products

@if(session('success'))
{{ session('success') }}
@endif {{-- Products table --}}
@forelse($products as $product) @empty @endforelse
Product Type Price Purchases Status Actions

{{ $product->name }}

@if($product->description)

{{ $product->description }}

@endif @if($product->stripe_price_id)

Stripe: {{ $product->stripe_price_id }}

@endif
{{ str_replace('_', ' ', ucfirst($product->type)) }} {{ number_format((float) $product->price, 2) }} {{ strtoupper($product->currency) }} {{ number_format($product->purchases_count) }}
@csrf {{ $product->is_active ? 'Active' : 'Inactive' }}
Edit
@csrf @method('DELETE')
No add-on products yet. Create one
@if($products->hasPages())
{{ $products->links() }}
@endif
@endsection