@inject('baseHelper', 'App\Repositories\BaseRepository') @extends('admin.layouts.app') @section('title') Subscription @endsection @section('contents')
# | Plan Name | Stripe Id | Project | Client | Status | Billing | Cost | Created | Next Renewal | Action | |
---|---|---|---|---|---|---|---|---|---|---|---|
{{ $loop->iteration }} | {{ ucfirst($subscription->name) }} | {{ ucfirst($subscription->stripe_id) }} | {{ $subscription->project->name ?? null }} | {{ $subscription->user->name ?? null }} | {{ $subscription->user->email ?? null }} | {{ ucfirst($sub->status) }} | {{ $sub->collection_method === 'charge_automatically' ? 'Automatic': 'Manual' }} | ${{ number_format($sub->plan->amount/100, 2) . ' ' . ucfirst($sub->plan->interval) }} | {{ \Carbon\Carbon::createFromTimeStamp($sub->current_period_start)->format('d M Y, h:i a') }} | {{ \Carbon\Carbon::createFromTimeStamp($sub->current_period_end)->format('d M Y, h:i a') }} | @if($sub->status === 'active') {{-- @else--}} {{-- --}} {{-- Cancelled--}} @endif |