@extends(@Auth::user()->role=='admin' ? 'layouts.gentella':'layouts.'.env('LAYOUT')) @section('content')
| Id | Name | Active (Orders) |
Revision (Orders) |
Pending (Orders) |
Completed (Orders) |
Action | |
|---|---|---|---|---|---|---|---|
| {{ $writer->id }} | {{ $writer->email }} | {{ $writer->name }} | {{ $active = count(\App\Assign::where([ ['user_id',$writer->id], ['status',0] ])->get()) }} | {{ $revision = count(\App\Assign::where([ ['user_id',$writer->id], ['status',2] ])->get()) }} | {{ $pending = count(\App\Assign::where([ ['user_id',$writer->id], ['status',3] ])->get()) }} | {{ $completed = count(\App\Assign::where([ ['user_id',$writer->id], ['status',4] ])->get()) }} | id") }}" class="btn btn-info">View |