@extends('layouts.app') @section('title', __('superadmin::lang.superadmin') . ' | ' . __('superadmin::lang.subscription')) @section('content')
@include('superadmin::layouts.partials.currency')

@lang('superadmin::lang.active_subscription')

@if(!empty($active))

{{$active->package_details['name']}}

@lang('superadmin::lang.running')
@lang('superadmin::lang.start_date') : {{@format_date($active->start_date)}}
@lang('superadmin::lang.end_date') : {{@format_date($active->end_date)}}
@lang('superadmin::lang.remaining', ['days' => \Carbon::today()->diffInDays($active->end_date)])
@else

@lang('superadmin::lang.no_active_subscription')

@endif @if(!empty($nexts))
@foreach($nexts as $next)

{{$next->package_details['name']}}

@lang('superadmin::lang.start_date') : {{@format_date($next->start_date)}}
@lang('superadmin::lang.end_date') : {{@format_date($next->end_date)}}
@endforeach @endif @if(!empty($waiting))
@foreach($waiting as $row)

{{$row->package_details['name']}}

@if($row->paid_via == 'offline') @lang('superadmin::lang.waiting_approval') @else @lang('superadmin::lang.waiting_approval_gateway') @endif
@endforeach @endif

@lang('superadmin::lang.all_subscriptions')

@lang( 'superadmin::lang.package_name' ) @lang( 'superadmin::lang.start_date' ) @lang( 'superadmin::lang.trial_end_date' ) @lang( 'superadmin::lang.end_date' ) @lang( 'superadmin::lang.price' ) @lang( 'superadmin::lang.paid_via' ) @lang( 'superadmin::lang.payment_transaction_id' ) @lang( 'sale.status' ) @lang( 'lang_v1.created_at' ) @lang( 'business.created_by' ) @lang('messages.action')

@lang('superadmin::lang.packages')

@include('superadmin::subscription.partials.packages')
@endsection @section('javascript') @endsection