@extends('layouts.customer') @section('title') Billings @endsection @section('content')

{{trans('customer.billing')}}

Daily send limit
{{$remainDailySent}}/{{isset($customer_plan->daily_send_limit)?$customer_plan->daily_send_limit:0}}
Daily Received
{{$remainDailyReceive}}/{{isset($customer_plan->daily_receive_limit)?$customer_plan->daily_receive_limit:0}}
Contacts
{{$remaincontact}}/{{isset($customer_plan->contact_limit)?$customer_plan->contact_limit:0}}
Devices
{{$remaindevice}}/{{isset($customer_plan->device_limit)?$customer_plan->device_limit:0}}
Your Plan
@if(isset($customer_plan->plan) && $customer_plan->plan)

{{$customer_plan->plan->title}}

@else

 

@endif @if(isset($customer_plan->renew_date) && $customer_plan->renew_date)
Expiry at {{$customer_plan->renew_date->format('M d, Y')}}
@else
 
@endif
No
Plan
Amount
Payment Status
Status
Purchase Date
Expiry Date
@if(!isset($paymentPlan) && isset($renewDate))
Action
@endif
@if($customerPlans->isNotEmpty()) @foreach($customerPlans as $key=>$customerPlan)
#{{$customerPlan->id}}
{{$customerPlan->plan->title}}
{{formatNumberWithCurrSymbol($customerPlan->plan->price)}}
{{ucfirst($customerPlan->payment_status)}}
@if($customerPlan->status == 'pending')
Pending
@elseif($customerPlan->status == 'rejected')
Rejected
@elseif($customerPlan->status == 'accepted')
Accepted
@endif
{{$customerPlan->created_at->format('M d, Y')}}
@if(isset($customerPlan->renew_date) && $customerPlan->renew_date)
{{$customerPlan->renew_date->format('M d, Y')}}
@endif @if($customerPlan->status == 'pending' && !isset($paymentPlan)) @if(Module::has('PaymentGateway') && Module::find('PaymentGateway')->isEnabled()) @else @endif @endif
@endforeach @else
No plan request available
@endif
@endsection