File: test.blade.php

package info (click to toggle)
web-mode 17.3.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,164 kB
  • sloc: lisp: 13,359; javascript: 506; jsp: 113; sh: 10; php: 9; makefile: 8; xml: 2
file content (55 lines) | stat: -rw-r--r-- 981 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<div>

  <span>@lang('consumption.this_month')</span>

  Hello, {!! $name !!}.

  {{ isset($name) ? $name : 'Default' }}

  @{{ This will not be processed by Blade }}

  @component
    toto
  @endcomponent

  {{-- This comment will not be in the rendered HTML --}}

  @section('title', 'Page Title')

  @if (count($records) === 1)
    I have one record!
  @elseif (count($records) > 1)
    I have multiple records!
  @else
    I don't have any records!
  @endif

  @unless (Auth::check())
    You are not signed in.
  @endunless

  Anothter example:

  @section('box-content')

    <h4>Item </h4>
    {!!Form::open( ['route' => ['menu.store'] , 'id' => 'form'])!!}

    @section('list.item.content')
      <p>This is an item of type {{$item->type}}</p>
    @overwrite

    <div>
      @section('sidebar')
        This is themaster sidebar.
      @show
      <div class="container">
        @yield('content')
      </div>
    </div>

  @show

</div>

<span>@choice('foo', 2)</span>