@if($data['agent_id'])
Warning: Undefined variable $data in /home/calc/public_html/resources/views/report/agent_sec.blade.php on line 3

Warning: Trying to access array offset on value of type null in /home/calc/public_html/resources/views/report/agent_sec.blade.php on line 3
@endif @php($agent_details = App\Client::where('status', 'ACTIVE')->where('id', $agent_id)->first()) @if (!empty($agent_details))
Agent: {{$agent_details['name']}} {{$agent_details['agent_state']}} {{$agent_details['license_number']}}, {{$agent_details['brokerage_name']}}, {{$agent_details['broker_license_number']}}
Email: {{$agent_details['email']}}
Phone: {{$agent_details['mobile']}}
Address: {{$agent_details['address']}}
@endif