@extends('layouts.partner') @section('content')

Total Sales

{{ number_format($sales, 0, ',') }}

Total Revenue

${{ number_format(round($revenue), 0, ',') }}

Commission Earned

${{ number_format(round($commission), 0, ',') }}

Commission by Project

@foreach ($commissions as $key => $commission) @endforeach
# Client Name Business Name Status Deal Size Commission Type Client Paid On Project Name
{{ ++$key }} {{ $commission->client->user->name }} {{ $commission->client->business_name }} ${{ number_format(round($commission->deal_size), 0, ',') }} ${{ number_format(round($commission->deal_size * ($commission->commission / 100)), 0, ',') }} {{ $commission->type == 0 ? 'Straight' : 'Recurring' }} {{ \Carbon\Carbon::parse($commission->deal_date)->format('d M Y') }}

{{ $commission->project->name }}

Regional Sales

Sales by Customer Location

@section('script') @endsection @endsection