@extends('layouts/contentNavbarLayout') @section('title', 'Billing - Billing Detail') @section('page-style') @endsection @section('content')
{{users->anme }}>
Customer Detail
  • Username: {{ $payments->users->name }}
  • Email: {{ $payments->users->email ?? '' }}
  • Contact: {{ $payments->users->phone ?? 'N/A' }}
  • Refered By: {{ $referalUser->name ?? 'N/A' }}
  • Payment Detail
  • @if ($payments->type == 'stripe') Strip Customer Id: {{ $payments->stripe_customer_id ?? 'N/A' }} @elseif($payments->type == 'authorize-net') Authorize Payment Id: {{ $payments->stripe_customer_id ?? 'N/A' }} @elseif($payments->type == 'paypal') Paypal Payment Id: {{ $payments->paypal_payment_id ?? 'N/A' }} @endif {{-- @if ($payments->stripe_customer_id) Strip Customer Id: {{ $payments->stripe_customer_id ?? 'N/A' }} @else Paypal Subscription Id: {{ $payments->paypal_subscription_id ?? 'N/A' }} @endif --}}
  • @if ($payments->type == 'stripe') Stripe Charge Id: {{ $payments->stripe_charge_id ?? 'N/A' }} @endif
  • Price: ${{ $payments->amount ?? 'N/A' }}
  • Currency: {{ $payments->currency ?? 'N/A' }}
  • Payment Date: {{ $payments->created_at->format('m-d-Y') ?? 'N/A' }}
  • {{--
  • Description: {{ $payments->description ?? 'N/A' }}
  • --}}
  • Status: {{ $payments->status }}
  • {{--
  • Country: England
  • --}}
Commission Process

If you want to send a commission to {{ $referalUser->name }}, please click the button below. Ensure that the {{ $referalUser->name }} has met all the necessary requirements for receiving the commission.

@if ($payments->is_commission_given == false) @if (Auth::user()->role_id === 1) Agent commission: ${{ $payments->commission ?? '' }}

@elseif(Auth::user()->role_id === 5) External commission: ${{ $payments->commission ?? '' }}

@endif @if ($payments->sub_agent_commission != 0) Sub Agent commission: ${{ $payments->sub_agent_commission ?? '' }} @endif
@csrf @if ($payments->type == 'stripe') @elseif($payments->type == 'paypal') @elseif($payments->type == 'authorize-net') @endif
@else Commission Sent @endif
@endsection @section('page-script') @endsection