@foreach($list as $key => $sub) @endforeach
S.No. User Name Email Sub ID Plan Type Amount Start Date End Date Interval Sub. Status Payment Status
{{ ++$key }} @if($sub->user!=null) {{-- --}} {{ $sub->user->name }} @else N/A @endif @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
{{ $list->links() }}