Skip to content

Instantly share code, notes, and snippets.

View heidilux's full-sized avatar

Josh Pike heidilux

View GitHub Profile
@heidilux
heidilux / profile.blade.php
Last active August 29, 2015 13:57
PHP Storm popping error on the break statement
```
@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; ?>
@heidilux
heidilux / build-a-kit
Last active August 29, 2015 14:15
Page displays table of components and table containing chosen components for custom kit build. (Laravel4/Blade/jQuery)
```
@extends('layouts.master')
@section('styles')
<link href="{{ asset('css/jquery.dataTables.css') }}" rel="stylesheet">
@stop
@section('body')
<div class="row search-row">