Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh Pike heidilux

View GitHub Profile
@heidilux
heidilux / build-a-kit
Last active Aug 29, 2015
Page displays table of components and table containing chosen components for custom kit build. (Laravel4/Blade/jQuery)
View build-a-kit
```
@extends('layouts.master')
@section('styles')
<link href="{{ asset('css/jquery.dataTables.css') }}" rel="stylesheet">
@stop
@section('body')
<div class="row search-row">
@heidilux
heidilux / profile.blade.php
Last active Aug 29, 2015
PHP Storm popping error on the break statement
View profile.blade.php
```
@foreach ($user->orders->reverse() as $i => $line)
<tr>
<td>G-E-{{ $line->id }}</td>
<td>${{ $line->sale_price }}</td>
<td>{{ $line->created_at->format('F j, Y') }}</td>
<td class="text-right"><a href="{{ route('orderDetail', $line->id) }}" class="btn btn-default">Details <i class="fa fa-chevron-right"></i></a></td>
</tr>
@if ($i == 2)
<?php break; ?>