Laravel Blade If Multiple Conditions Example

By Hardik Savani November 5, 2023 Category : Laravel

Now, let's see example of laravel blade if multiple conditions. i explained simply step by step multiple if condition in laravel blade. Here you will learn if two conditions laravel. let’s discuss about if with and and or in laravel blade. Alright, let’s dive into the steps.

you can write multiple conditions in if statement with laravel 6, laravel 7, laravel 8, laravel 9 and laravel 10.

let's see bellow simple example:

Blade File Code:

@if($isAdmin == 1 && $active == 1)

Admin User


Controller File Code:


namespace App\Http\Controllers;

use Illuminate\Http\Request;

class AjaxController extends Controller



* Create a new controller instance.


* @return void


public function index()


$isAdmin = 1;

$active = 1;

return view('ajaxRequest', compact('isAdmin', 'active'));




Admin User

I hope it can help you...

Tags :