@extends('layouts.public') @section('title', $api['name'] . ' – ' . config('app.name')) @section('description', $api['description']) @push('styles') @endpush @section('content') {{-- ── HERO ── --}}
Back to catalog
@if($api['icon'] === 'globe') @elseif($api['icon'] === 'credit-card') @elseif($api['icon'] === 'message') @elseif($api['icon'] === 'shield') @elseif($api['icon'] === 'cloud') @elseif($api['icon'] === 'bell') @elseif($api['icon'] === 'dollar') @elseif($api['icon'] === 'eye') @else @endif

{{ $api['name'] }}

{{ ucfirst($api['plan']) }}

{{ $api['description'] }}

@auth Get API Key @else Get API Key @endauth
@if($api['price'] == 0) Free @else ${{ $api['price'] }}/month @endif
@foreach($api['stats'] as $stat)
{{ $stat['label'] }} @if($stat['label'] === 'Base URL') {{ $stat['value'] }} @else {{ $stat['value'] }} @endif
@endforeach
Status {{ $api['status'] }}
{{-- ── TABS ── --}}
{{-- ── TAB: ENDPOINTS ── --}}
@foreach($api['endpoints'] as $ep)
{{ $ep['method'] }} {{ $ep['path'] }} {{ $ep['desc'] }}
@endforeach
{{-- ── TAB: EXAMPLE ── --}}

Request

bash
{{ $api['example_request'] }}

Response

json
{{ $api['example_response'] }}
{{-- ── TAB: PRICING ── --}}
@php $freePlan = $plans->where('code', 'free')->first(); $stdPlan = $plans->where('code', 'standard')->first(); $premPlan = $plans->where('code', 'premium')->first(); $freeFeats = $freePlan && $freePlan->features ? array_filter(explode("\n", trim($freePlan->features))) : ['1,000 requests/month', 'Access to free APIs', '1 API key']; $stdFeats = $stdPlan && $stdPlan->features ? array_filter(explode("\n", trim($stdPlan->features))) : ['100k requests/month', 'All standard APIs', '5 API keys', 'Email support']; $premFeats = $premPlan && $premPlan->features ? array_filter(explode("\n", trim($premPlan->features))) : ['Unlimited requests', 'All APIs', 'Unlimited keys', '24/7 priority support']; @endphp
{{ $freePlan->name ?? 'Free' }}
${{ $freePlan ? number_format($freePlan->price, 0) : '0' }}/mo
{{ $freePlan->description ?? 'Great for experimenting and hobby projects.' }}
    @foreach($freeFeats as $f) @if(trim($f))
  • {{ trim($f) }}
  • @endif @endforeach
@auth My Dashboard @else Get started free @endauth
{{ $premPlan->name ?? 'Premium' }}
${{ $premPlan ? number_format($premPlan->price, 0) : '79' }}/mo
{{ $premPlan->description ?? 'For high-volume usage and enterprise needs.' }}
    @foreach($premFeats as $f) @if(trim($f))
  • {{ trim($f) }}
  • @endif @endforeach
@auth Upgrade @else Get Premium @endauth

All prices in USD. View full pricing page.

@endsection @push('scripts') @endpush