@extends('layouts.customer') @section('title', 'Downloads') @section('content')

Downloads

Download your purchased products. License must be active.

@php $typeIcons=['plugin'=>'🔌','module'=>'🧩','software'=>'💻','theme'=>'🎨','api'=>'⚡','saas'=>'☁️']; @endphp {{-- Available downloads header --}}
Available Downloads {{ $licenses->count() }}
{{-- Download list --}}
@forelse($licenses as $license) @php $latest = $license->product->latestVersion; $isLast = $loop->last; @endphp
{{-- Icon --}}
{{ $typeIcons[$license->product->type??'-']??'-' }}
{{-- Info --}}
{{ $license->product->name }}
@if($latest) v{{ $latest->version }} . {{ number_format($latest->file_size / 1024 / 1024, 1) }} MB . Stable @else No file available yet @endif
{{-- Status + Download --}}
{{ ucfirst($license->status) }} @if($latest && $latest->file_path) Download @else No file @endif
@empty
📥
No downloads available

Purchase a product to get download access.

Browse Market →
@endforelse
{{-- Download history --}} @if($history->count())
Download History
@foreach(['Product','Version','Date','IP Address'] as $h) @endforeach @foreach($history as $dl) @endforeach
{{ $h }}
{{ $dl->product->name??'-' }} v{{ $dl->version?->version??'-' }} {{ \Carbon\Carbon::parse($dl->created_at)->format('M d, Y H:i') }} {{ $dl->ip_address??'-' }}
@endif @endsection