@extends('layouts.admin') @section('page-title', 'Subscription Setting') @section('content')

Subscription Setting

{{-- Left Column: Subscription Method --}}

Seller Subscription Setting

@csrf
{{-- Right Column: Info Cards --}}
{{-- Method Info --}}

Method Info

Type Setting:

  • Adjustable: If this method is selected, seller can choose any package from the list but the previous one will be canceled and the price will be adjusted according to the package and will be refunded to wallet.

    Example: Premium package costs $750 for 365 days. If canceled at 180th day, then $379.25 (750/365 = 2.05 × 185 = 379.25) will be refunded to wallet.
  • Not Adjustable: If this method is selected, choosing any package will expire the previous one and the price will not be adjusted or refunded to wallet.
{{-- Cron Job Setting --}}

Cron Job Setting

For managing auto expiration of subscription/notify the sellers, you need to set cron job. Add the following command to your cron job:

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
@endsection