@extends('layouts/contentNavbarLayout') @section('title', 'Billing - Billing History') @section('page-style') @endsection @section('content') {{--

Agents / Customers

--}}
Billing History
@if (in_array(auth()->user()->role_id, [1, 5])) @endif @if (in_array(auth()->user()->role_id, [1, 5])) @endif @foreach ($billing as $value) @if (in_array(auth()->user()->role_id, [1, 5])) @else @endif @if (in_array(auth()->user()->role_id, [1, 5])) @endif @if (in_array(auth()->user()->role_id, [1, 5])) @endif @endforeach
#CustomerProduct Quantity Amount Currency Payment Payment DateIs view Commission Given Actions
{{ $loop->iteration }}
{{ $value->users->name }}
{{ $value->users->name ?? 'N/A' }}
{{ $value->products->name ?? '' }} {{ $value->product_qty ?? 'N/A' }} ${{ $value->amount ?? 'N/A' }} {{ strtoupper($value->currency ?? '') }} @if ($value->status === 'succeeded') Success @endif {{ $value->created_at->format('m-d-Y h:i') }} {{ $value->is_viewed == 0 ? 'No' : 'Yes' }} {{ $value->is_commission_given == 0 ? 'No' : 'Yes' }}
{{ $billing->links() }}
@endsection