laravel si sintaxis
@if (foo)
// do something
@elseif (bar)
// do something else
@else
// do some other thing;
@endif
Helpful Hawk
@if (foo)
// do something
@elseif (bar)
// do something else
@else
// do some other thing;
@endif
<x-alert type="error" :message="$message"/>
<div class="alert alert-{{ $type }}">
{{ $message }}
</div>
<option {{ $isSelected($value) ? 'selected="selected"' : '' }} value="{{ $value }}">
{{ $label }}
</option>
/**
* Create the component instance.
*
* @param string $alertType
* @return void
*/
public function __construct($alertType)
{
$this->alertType = $alertType;
}