1@if($user->status =='active')
2 <td>{{ $user->name }}</td>
3@else
4 <td> Guest </td>
5@endif
1@if (foo)
2 // do something
3@elseif (bar)
4 // do something else
5@else
6 // do some other thing;
7@endif
1@if (count($records) === 1)
2 I have one record!
3@elseif (count($records) > 1)
4 I have multiple records!
5@else
6 I don't have any records!
7@endif
1 @if($order->status == 'NEEDS REVISION')
2 <td>{{$order->status}}</td>
3 @else
4 <td id="revision-status">{{$order->status}}</td>
5 @endif
1@if ($dummy == 1) we have 1 record@elseif ($dummy ==10) we have 10 record@else No record found.@endif
1<!-- Stored in resources/views/child.blade.php -->
2
3@extends('layouts.app')
4
5@section('title', 'Page Title')
6
7@section('sidebar')
8 @parent
9
10 <p>This is appended to the master sidebar.</p>
11@endsection
12
13@section('content')
14 <p>This is my body content.</p>
15@endsection