@extends('layouts.dashboard-app') @section('main-content')

Hello, Welcome {{ auth()->user()->name }}

{{--
--}}
@inject('provider', 'App\Http\Controllers\MainController')

Agent Report

{{-- Add New Target --}}
@foreach ($data as $item) {{-- @dd($item); --}} @php $channel = str_replace(' ', '-', $channel); @endphp @endforeach
Agent Name Email Pending In Process Active Reject Status Action
{{ $item->name }} {{ $item->email }} {{-- View remarks --}} {{ $provider::sale_count($item->id, '1.01', $channel) }} {{-- --}} {{-- View remarks --}} {{ $provider::sale_count($item->id, '1.10', $channel) }} {{-- --}} {{-- View remarks --}} {{ $provider::sale_count($item->id, '1.02', $channel) }} {{-- --}} {{-- View remarks --}} {{ $provider::sale_count($item->id, '1.04', $channel) }} {{-- --}} @if($item->status == 0) Disabled @else Active @endif @if ($item->status == 0) {{-- Active --}} @else {{-- De Active --}} @endif
@endsection {{-- @@section('name') --}} {{-- @endsection --}}