- Fix Codes count
This commit is contained in:
parent
8bcd5cf512
commit
b661102979
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ use Illuminate\Http\Request;
|
|||
class CodesController extends Controller
|
||||
{
|
||||
public function index() {
|
||||
$nbCodeBase = Codes::all()->count();
|
||||
$nbCodeBase = Codes::count();
|
||||
$nbCodeUsed = Codes::where('code_used', 1)->count();
|
||||
return view('bo.codes.index', compact('nbCodeBase', 'nbCodeUsed'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue