@extends('modulemanager::layouts.master') @section('title', 'Envato Marketplace') @section('content') @if(!$envatoToken)

Envato API Token Not Configured

To access your purchases and install modules from Envato, you need to configure your Envato API token in the settings.

Go to Settings
@else
Install from Envato Purchase Code
@csrf
@error('purchase_code')
{{ $message }}
@enderror Enter your item purchase code from Envato.
Search Envato Marketplace
@if($hasPurchases)

Your Envato Purchases

@foreach($purchases as $purchase)
@if(isset($purchase['item']['previews']['icon_with_landscape_preview']['icon_url'])) {{ $purchase['item']['name'] }} @endif
{{ $purchase['item']['name'] }}

{{ $purchase['item']['site'] }} v{{ $purchase['item']['version'] }}

Purchased: {{ \Carbon\Carbon::parse($purchase['purchased_at'])->format('M d, Y') }}

@endforeach
@endif @endif @endsection @section('scripts') @endsection