@extends in conditional code example Example: laravel extends if @extends(Auth::user() ? 'template/index' : 'template/login');