@extends('layouts.dash') @section('title', 'Price Management — '.$service->name) @section('content')
API Management / Price Management

Price Management

Build product cards for {{ $service->name }}. Each card controls credits, total price, validity, status, and checkout visibility.

Edit API New Product Card
{{ $service->name }}/api/{{ $service->slug }}
{!! badge($service->status) !!}
{{ (int) $service->credits_per_hit }} credit/hit {{ taka($service->credit_price ?: setting('credit_price_default', 1)) }} custom / credit {{ $packages->count() }} product cards
@if($packages->isEmpty())
No product cards yetAdd your first plan to let users buy credits for this API.Create Product Card
@else
@foreach($packages as $p) @php $perCredit = $p->requests > 0 && $p->price > 0 ? (float) $p->price / (int) $p->requests : 0; @endphp
@if($p->highlight) Most Popular@endif
{!! badge($p->status) !!}

{{ $p->name }}

{{ $p->price > 0 ? taka($p->price) : 'FREE' }}
{{ $perCredit > 0 ? taka($perCredit).' per credit' : 'Instant free claim' }}
{{ number_format((int) $p->requests) }} credits {{ (int) $p->validity_days }} days
Edit
@csrf @method('DELETE')
@endforeach
@endif
Pricing rulePackage price is the total checkout amount. The effective per-credit rate is calculated as total price ÷ credits. Custom credit purchases use the API’s {{ taka($service->credit_price ?: setting('credit_price_default', 1)) }} per-credit rate.
@endsection