@extends('layouts.app') @section('title') Payroll Listing @endsection @section('content') @php $fromDate = isset($_GET['from']) ? htmlspecialchars($_GET['from']) : ''; $toDate = isset($_GET['to']) ? htmlspecialchars($_GET['to']) : ''; @endphp
@csrf

{{ __('Payroll') }}

@if(isset($finalList) && count($finalList) > 0) @foreach ($finalList as $record) @endforeach @else @endif
Payee Name Agent Name Client ID Transaction Description Incentive Amount Action
{{ (isset($record['payeeDetail']['name']) ? $record['payeeDetail']['name'] : '').' '. (isset($record['payeeDetail']['last_name']) ? $record['payeeDetail']['last_name'] : '') }} {{ (isset($record['agentDetail']['name']) ? $record['agentDetail']['name'] : '').' '. (isset($record['agentDetail']['last_name']) ? $record['agentDetail']['last_name'] : '') }} @if(isset($record['client']['id']))#{{ $record['client']['id'] }}@endif @if(isset($record['client']['transaction_type_id'])){{ getTransactionName($record['client']['transaction_type_id']) }}@endif {{ $record['description'] }} {{ isset($record['incentive']) ? '$'.number_format($record['incentive'],2) : '' }} {{ '$'.number_format($record['amount'],2) }} @if(isset($record['client']['id']) && $record['description'] != 'Team Agent Paid' && $record['description'] != 'Referral') @endif
No Records Found
@endsection