@extends('admin.layouts.adminpanel') @section('page_header') @php $page_title = 'Revenue Report'; @endphp @include('admin.partials.page_header') @endsection @section('content')
{{-- comisionista does not see list of clients --}} @if (currentUserRoleId() != 4)
@endif

{{-- comisionista update to 4 --}} @if (currentUserRoleId() == 3 || currentUserRoleId() == 4) {{-- Summary --}}
Resumen General
Total Cobrado
Total por Cobrar
Total Nuevas Licencias

{{-- comisionista update to 4 --}} @if (currentUserRoleId() == 3 || currentUserRoleId() == 4)
@endif

@endif @if (isset($investors)) @foreach ($investors as $investor) @php $share_pct = null; if (currentUserRoleId() == 3 && isset($investor->investment)) { $share_pct = $investor->investment->share_pct; } elseif (currentUserRoleId() == 4 && isset($investor->commission)) { // comisionista $share_pct = $investor->commission->share_pct; } @endphp @endforeach @endif {{-- comisionista update to 4 --}} @if (currentUserRoleId() == 3 || currentUserRoleId() == 4) @else @endif @if (isset($investors)) @foreach ($investors as $investor) @endforeach @endif {{-- comisionista update to 4 --}} @if (currentUserRoleId() == 3 || currentUserRoleId() == 4) @else @endif
{{ __('ID') }} {{ __('Date') }} {{ __('Client') }} {{ __('Package') }} {{ __('Amount') }} {{ __('Tax') }} {{ __('Total') }} {{ __('Fee') }} {{ $investor->name }} @if (!is_null($share_pct)) {{ number_format($share_pct, 0) }}% @endif {{ __('Status') }}{{ __('Invoice') }} {{ __('Files') }}
{{ __('Totals') }}
@endsection