| 1 |
<!-- Stored in resources/views/layouts/app.blade.php --> |
| 2 |
|
| 3 |
<html> |
| 4 |
<head> |
| 5 |
<title>App Name - @yield('title')</title> |
| 6 |
<script> |
| 7 |
var app = @json($array); |
| 8 |
</script> |
| 9 |
</head> |
| 10 |
<body> |
| 11 |
@extends('layouts.app') |
| 12 |
@section('sidebar') |
| 13 |
@parent |
| 14 |
|
| 15 |
<p>This is appended to the master sidebar.</p> |
| 16 |
@endsection |
| 17 |
|
| 18 |
@if (count($records) === 1) |
| 19 |
I have one record! |
| 20 |
@elseif (count($records) > 1) |
| 21 |
I have multiple records! |
| 22 |
@else |
| 23 |
I don't have any records! |
| 24 |
@endif |
| 25 |
|
| 26 |
@foreach ($users as $user) |
| 27 |
@if ($user->type == 1) |
| 28 |
@continue |
| 29 |
@endif |
| 30 |
|
| 31 |
<li>{{ $user->name }}</li> |
| 32 |
|
| 33 |
@if ($user->number == 5) |
| 34 |
@break |
| 35 |
@endif |
| 36 |
@endforeach |
| 37 |
|
| 38 |
@foreach ($users as $user) |
| 39 |
@continue($user->type == 1) |
| 40 |
|
| 41 |
<li>{{ $user->name }}</li> |
| 42 |
|
| 43 |
@break($user->number == 5) |
| 44 |
@endforeach |
| 45 |
|
| 46 |
<div> |
| 47 |
@include('shared.errors') |
| 48 |
|
| 49 |
<form> |
| 50 |
<!-- Form Contents --> |
| 51 |
</form> |
| 52 |
</div> |
| 53 |
|
| 54 |
@includeIf('view.name', ['some' => 'data']) |
| 55 |
|
| 56 |
@env('local') |
| 57 |
// The application is in the local environment... |
| 58 |
@elseenv('testing') |
| 59 |
// The application is in the testing environment... |
| 60 |
@else |
| 61 |
// The application is not in the local or testing environment... |
| 62 |
@endenv |
| 63 |
|
| 64 |
<div class="container"> |
| 65 |
@yield('content') |
| 66 |
</div> |
| 67 |
</body> |
| 68 |
</html> |
| 69 |
|
| 70 |
|
| 71 |
{{-- comment --}} |
| 72 |
|
| 73 |
@if ( |
| 74 |
{{-- comment --}} |
| 75 |
/*block comment*/ |
| 76 |
#another comment |
| 77 |
$user->type == 1 |
| 78 |
// c comment |
| 79 |
/* comment*/ |
| 80 |
) |
| 81 |
# not a comment <div id="#//x"></div> |
| 82 |
@endif |