@section('page-title', 'Commission Report') @push('vendor-css') @endpush

{{ __('Commission Report') }}

Commission Report
@can('export-leads') {{-- @if (auth()->user()->hasRole('Super Admin') || auth()->user()->email == env('EMAIL_ALLOWD_TO_EXPORT_CR')) --}} @if (count($ids_to_export) > 0) {{--
Export
@csrf
--}} @endif {{-- @endif --}} @endcan
{{-- @if ($results_for || count($leads) > 0) --}}

Filter

Provide only the data you want to filter by:

{{-- @hasanyrole('Super Admin|Agency|Agency Admin|Agency User|Office Admin|Marketer') --}} {{-- First Name Last Name Start --}} @can('first-name')
@endcan @can('last-name')
{{-- First Name Last Name Start --}} @endcan @can('by-carrier')
@endcan @can('by-product')
{{-- @foreach ($products as $product) @endforeach --}}
@endcan {{-- @endhasanyrole --}} {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Agency User') --}} @can('policy-no')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin') --}} @can('sale-type')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Agency User|Office Admin|Conservation Admin') --}} @can('application-date')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Agency User|Office Admin|Conservation Admin') --}} @can('initial-draft-date')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Agency User|Office Admin|Conservation Admin') --}} @can('future-draft-date')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Agency User|Office Admin|Conservation Admin') --}} @can('dob')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Office Admin|Conservation Admin') --}} @can('updated-at')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Office Admin') --}} @can('paid-unpaid')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Agency User|Office Admin') --}} @can('status')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Office Admin') --}} @can('by-agency')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Agency User') --}} @can('by-office-admin')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Office Admin') --}} @can('by-office-manager')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Office Admin|Conservation Admin') --}} @can('by-agent')
{{-- @endhasanyrole --}} @endcan @hasanyrole('Super Admin|Agency|Agency Admin|Office Admin') {{--
--}} @endhasanyrole {{-- {{ dd($clients) }} --}} {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Agency User|Office Admin') --}} @can('by-client') {{--
--}} {{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency User|Agency Admin') --}} @can('age')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Agency User|Office Admin') --}} @can('welcome-letter')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Agency User|Office Admin') --}} @can('permission-tcpa')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin|Agency User|Office Admin') --}} @can('banking-codes')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Office Admin|Marketer')
@endhasanyrole --}} {{-- @role('Super Admin')
@endrole --}} {{-- @hasanyrole('Super Admin|Agency')
@endhasanyrole --}} {{-- @hasanyrole('Super Admin|Agency|Office Admin|Agency Admin') --}} @can('marketer-id')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Agency|Office Admin|Marketer') --}} @can('conservation-admin-id')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin|Conservation Admin') --}} @can('conservation-agent-id')
{{-- @endhasanyrole --}} @endcan @can('lead-id')
@endcan {{--
--}} @can('lead-source')
@endcan {{--
--}} @can('primary-contact')
US (+1)
@endcan @can('secondary-contact')
US (+1)
@endcan @can('other-contact')
US (+1)
@endcan @can('date-range')
@endcan {{-- @hasanyrole('Super Admin|Agency|Agency Admin') --}} @can('source-of-income')
{{-- @endhasanyrole --}} @endcan {{-- @hasanyrole('Super Admin') --}} @can('dublicate-contact-ssn')
{{-- @endhasanyrole --}} @endcan
{{-- @endif --}} @if (Session::has('leads-filters') || Session::has('sort')) @role('Conservation Admin') Reset @else Reset @endrole @endif
@if ($results_for != '') @if ($leads->count() > 0)

Results For: {{ $results_for }}

@else

No Results For: {{ $results_for }}

@endif @endif
@php $previousCommissionUrl = request()->fullUrl(); session()->put('previousCommissionUrl', $previousCommissionUrl); @endphp @if (!auth()->user()->hasRole('Office Admin|Marketer')) @endif @if (!auth()->user()->hasRole('Office Admin|Office Manager')) @if (auth()->user()->hasRole('Super Admin|Agency|Agency User|Agency Admin')) @endif @can('assign-commission-conservation') @endcan @can('assign-commission-status') @endcan @can('update-commission') @endcan @endif @foreach ($leads as $key => $lead) @csrf @method('patch')
Office Lead ' . $total_leads . '' : 'No Leads' }}" data-bs-html="true" data-bs-trigger="hover focus" title="Total Leads">ID Client Name ' . $uniqueNames . '' : 'No Unique.' }}" data-bs-html="true" data-bs-trigger="hover focus" title="Client Name"> Policy Number ' . $policy_number_count . '' : 'No Policy Number has been alloted yet.' }}" data-bs-html="true" data-bs-trigger="hover focus" title="Policy Number"> Phone Number Carrier ' . $carrierCounts . '' : 'No Carrier.' }}" data-bs-html="true" data-bs-trigger="hover focus" title="Carrier Record"> Plan ' . $planCounts . '' : 'No Plan.' }}" data-bs-html="true" data-bs-trigger="hover focus" title="Plan Record"> Product ' . $productCounts . '' : 'No Product.' }}" data-bs-html="true" data-bs-trigger="hover focus" title="Product Record"> Application Date Initial Draft Date Future Draft Date Annual Premium Total $' . $total_commission . ' ' : 'No Total Commission' }}" data-bs-html="true" data-bs-trigger="hover focus" title="Total Commission">Commission Due $' . $total_commission . ' ' : 'No Due Commission' }}" data-bs-html="true" data-bs-trigger="hover focus" title="Due Commission">CommissionReceived $' . $received_commission . ' ' : 'No Received Commission' }}" data-bs-html="true" data-bs-trigger="hover focus" title="Received Commission">CommissionNegative Amount $' . $negative_amount . ' ' : 'No Negative Amount' }}" data-bs-html="true" data-bs-trigger="hover focus" title="Negative Amount"> Agent NameAssign to Conservation Admin ' . $conservationAdminCount . '' : 'All Are Not Assigned.' }}" data-bs-html="true" data-bs-trigger="hover focus" title="Conservation Admin"> Status
ActionComments
{{-- --}} @can('export-leads') @if (count($ids_to_export) > 0) @endif @endcan