@extends('layouts.admin') @section('title', 'Dashboard') @section('content')
Total User
Total Active User
Subscribed user
Un Subscribed user
| S.No. | User Name | Sub ID | Plan Type | Amount | Start Date | End Date | Interval | Sub. Status | Payment Status | |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ ++$key }} |
@if($sub->user!=null)
{{-- |
@if($sub->user!=null) {{ $sub->user->email }} @else N/A @endif | {!! $sub->stripe_subscription_id != 'Free Trial' ? ''.$sub->stripe_subscription_id.'' : $sub->stripe_subscription_id !!} | @if($sub->is_trial==1) Free Trial @else @if($sub->plan!=null) {{ $sub->plan->name }} @else N/A @endif @endif | ${{ $sub->amount }} | {{ date('Y/m/d',strtotime($sub->start_at)).' at '.date('h:i:s a',strtotime($sub->start_at)) }} | {{ date('Y/m/d',strtotime($sub->end_at)) }} | @if($sub->is_trial==1) 7 Days @else @if($sub->plan!=null) {{ ucfirst($sub->plan->interval) }} @else N/A @endif @endif | {{ ucfirst($sub->status) }} | @if($sub->is_trial==1) -- @else @if($sub->payment_status==1) Success @else Failed @endif @endif |