@extends('user.layouts') @section('title', 'Subscription Master') @section('header') @endsection @section('content')
{{-- ========================================================= PAGE HEADER ========================================================= --}}

Subscription Master

Manage subscription, commission and validity details

{{ count($subscriptions) }} Subscriptions
{{-- ========================================================= SUBSCRIPTION HISTORY ========================================================= --}}

Subscription History

View and manage all subscription configurations

@foreach($subscriptions as $item) {{-- SN --}} {{-- SUBSCRIPTION AMOUNT --}} {{-- REFERRAL --}} {{-- AGENT --}} {{-- SPONSOR --}} {{-- TAX --}} {{-- VALIDITY --}} {{-- STATUS --}} {{-- CREATED --}} {{-- ACTION --}} @endforeach
SN Subscription Amount Referral Amount Agent Commission % Sponsor Percentage % Tax % Validity Status Created Date Action
{{ $loop->iteration }} ₹{{ number_format($item->subscription_amount, 2) }} ₹{{ number_format($item->referral_amount, 2) }} {{ number_format($item->agent_commission_percentage, 2) }}% {{ number_format($item->sponsor_percentage ?? 0, 2) }}% {{ number_format($item->tax_percentage, 2) }}% {{ $item->validity_period }} {{ ucfirst($item->validity_type) }} @if($item->is_active == 1) Active @else Inactive @endif {{ optional($item->created_at)->format('d-m-Y') ?? '-' }}
{{-- ============================================================= CREATE SUBSCRIPTION MODAL ============================================================= --}} @endsection @section('footer') {{-- ============================================================= DATATABLE SCRIPTS jQuery -> DataTables -> Bootstrap -> Responsive ============================================================= --}} @endsection