Skip to content

Instantly share code, notes, and snippets.

@FWSimon
Created March 12, 2016 10:55
Show Gist options
  • Save FWSimon/56427710903cac6ab125 to your computer and use it in GitHub Desktop.
Save FWSimon/56427710903cac6ab125 to your computer and use it in GitHub Desktop.
<?php
public function index()
{
$invoices = invoice::find(1);
return view('invoices.index', compact('invoices'));
}
<table class="table table-hover">
<thead>
<tr>
<th>Status</th>
<th class="text-center">Client</th>
<th class="text-center">Due date</th>
<th class="text-center">Paid status</th>
<th class="text-center">Amount</th>
<th class="text-right">Actions</th>
</tr>
</thead>
<tbody>
@foreach($invoices as $invoice)
{{ var_dump($invoice) }}
<tr>
<td><span class="label label-warning">{{ $invoice['status']}}</span></td>
<td class="text-center">Simon Jensen</td>
<td class="text-center">{{ $invoice['due_date']}}</td>
<td class="text-center"><span class="label label-success"></span></td>
<td class="text-center">{{ $invoice['amount']}}</td>
<td class="text-right"><a href="#Resend">Send reminder</a></td>
</tr>
@endforeach
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment