%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/silvzytp/crm-ind-code/app/Http/Controllers/Backend/Member/
Upload File :
Create Path :
Current File : //home/silvzytp/crm-ind-code/app/Http/Controllers/Backend/Member/MemberController.php

<?php

namespace App\Http\Controllers\Backend\Member;

use DataTables;
use App\Models\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;

class MemberController extends Controller
{
    public function index(){
        page_title('Members');
        $breadcrumb = ['Dashboard'=>route('app.dashboard'), 'Team Member'=>''];
        $data = ['breadcrumb'=>$breadcrumb];
        return view('backend.member.manager.pages.member.index', $data);
    }

    public function getData(Request $request){
        if ($request->ajax()) {
            $users = User::with('role')->where('manager_id',Auth::id())->latest('id');

            return DataTables::eloquent($users)
                ->addIndexColumn()
                ->make(true);
        }
    }
}

Zerion Mini Shell 1.0