Skip to content

Instantly share code, notes, and snippets.


Josh Pike heidilux

View GitHub Profile
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
<link href="{{ asset('css/jquery.dataTables.css') }}" rel="stylesheet">
<div class="row search-row">
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)
<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>
@if ($i == 2)
<?php break; ?>