Basically I want to @extend a blade template only if it exists, and if not @extend a different template. There are a few stack overflow answers concerning using @if @endif blocks, but that only works if you are @including a file, not @extending. Ideally something like this, but it doesn't work:
@if(some_condition == true)
@extends('one')
@else
@extends('two')
@endif
If the only way is to use Blade directives, could you please provide an example? Thank you!