PHP Classes

File: examples/views/Test/loop2.blade.php

Recommend this page to a friend!
  Classes of Jorge Castro  >  BladeOne  >  examples/views/Test/loop2.blade.php  >  Download  
File: examples/views/Test/loop2.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: BladeOne
Standalone template engine that compiles into PHP
Author: By
Last change: Update of examples/views/Test/loop2.blade.php
Date: 2 months ago
Size: 751 bytes
 

Contents

Class file image Download
<html>
<head>
    <title>Example of Loop 2</title>
    <!-- Google Fonts -->
    <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
    <!-- CSS Reset -->
    <link rel="stylesheet" href="//cdn.rawgit.com/necolas/normalize.css/master/normalize.css">
    <!-- Milligram CSS minified -->
    <link rel="stylesheet" href="//cdn.rawgit.com/milligram/milligram/master/dist/milligram.min.css">
</head>
<body>
<h1>Example of Loops</h1>
@foreach ($users as $user)
    <hr>
    Name user:{{$user->name}}<br>
    <ul>
    @foreach ($user->posts as $post)
        <li>{{$loop->parent->index}} {{$loop->index}} {{$loop->even}}: Subject:{{$post->subject}}</li>

    @endforeach
    </ul>
@endforeach
</body>
</html>


For more information send a message to info at phpclasses dot org.