@extends('backend.partials.master') @section('title') {{ ___('menus.commissions') }} @endsection @section('maincontent')
{{ ___('label.earned') }}

{{ currency_symbol() }}{{ number_format($earned) }}

{{ ___('label.pending') }}

{{ currency_symbol() }}{{ number_format($pending) }}

{{ ___('label.paid_out') }}

{{ currency_symbol() }}{{ number_format($paid) }}

{{ ___('label.avg_rate') }}

{{ number_format($rate, 1) }}%

@foreach($commissions as $c) @php $cls = $c->status === 'paid' ? 'success' : 'warning'; @endphp {{ $c->reference }} {{ $c->booking_ref }} {{ $c->customer_name }} {{ rtrim(rtrim(number_format($c->rate, 2), '0'), '.') }}% {{ currency_symbol() }}{{ number_format($c->amount) }} {{ $c->earned_on?->translatedFormat('d M Y') }} {{ admin_label(ucfirst($c->status)) }} @endforeach
@endsection