@extends('website.layout.master') @section('title') History @endsection @section('content')

Real Estate Commission Database

Subscription History

@if(isset(Auth::user()->purchased_subscriptions_data) && sizeof(Auth::user()->purchased_subscriptions_data)>0) @if(isset(Auth::user()->records_data) && sizeof(Auth::user()->records_data)>0)

Total Remaining Records : {{ (Auth::user()->purchased_subscriptions_data->sum('records')-sizeof(Auth::user()->records_data)) }}

@else

Total Remaining Records : {{ Auth::user()->purchased_subscriptions_data->sum('records') }}

@endif @endif

Subscription History

@forelse($subscription_history as $s=>$subscription_histor) @empty @endforelse
ID Heading Price Total Records Payment Status Purchased At Expiry
{{ $s+1 }} {{ $subscription_histor->heading }} ${{ $subscription_histor->price }} {{ $subscription_histor->records }} {{ $subscription_histor->payment_status }} {{ Carbon\Carbon::parse($subscription_histor->created_at)->format('d M Y') }} {{ ($subscription_histor->expiry) ? Carbon\Carbon::parse($subscription_histor->expiry)->format('d M Y') : '--' }}

@endsection @section('script') @endsection