@extends('layouts.sidebar') @section('title', 'Nomadic-Billing') @section('content')

Billing

@if(session('success'))
{{session('success')}}
@endif @if(session('error'))
{{session('error')}}
@endif
Transactions
Total Revenue

${{ number_format($amount_sum ?? 0, 2) }}

Transfer Points

{{ $transfer_points ?? 0 }}

Outstanding Points

{{ $outstanding_points ?? 0 }}

Subscription revenue

${{ number_format($subs_revenue ?? 0,2) }}

Topup revenue

${{ number_format($topup_revenue ?? 0,2) }}

Unclaimed Points

{{ $unclaimed_revenue ?? 0 }}

@foreach($data as $point) @endforeach
Date Transaction Amount Points User
{{date('d M Y',strtotime($point->created_at))}} {{$points_action[$point->action]}} @if($point->plan_id) ({{$point->plan->name}}) @endif @if(!empty($point->amount)) {{convertCurrency($point->amount)}} {{session()->get('user_currency')}} @else N/A @endif @if(in_array($point->action, ['MEMBERSHIP_CREDIT', 'POINTS_PURCHASED', 'BOOKING_CANCELLED'])) -{{$point->credit}} Points @else +{{$point->credit}} Points @endif @if(isset($point->receivedby->fname)) {{$point->receivedby->fname}} {{$point->receivedby->lname}} @endif
{!! $data->withQueryString()->links('vendor.pagination.bootstrap-5') !!}
Subscription Tiers
@foreach($plans as $plan) @endforeach
Name No. Of Guests Advance Booking Price Points Credit Discount Topup Discount Action
{{$plan->name}} {{$plan->num_of_guest}} {{$plan->advance_duration}} {{ucfirst($plan->advance_frequency)}} ${{$plan->price}} {{$plan->points + $plan->discount}} {{$plan->discount}} {{$plan->topup_discount}}
Addon Services
@foreach($services as $service) @endforeach
Service Name Description Price Status Created Action
{{$service->name}} {{$service->description}} ${{$service->price}} @if($service->status == 1) Active @else Inactive @endif {{$service->created_at}}
@endsection @section('footer_scripts') @endsection