Created
March 12, 2016 10:55
-
-
Save FWSimon/56427710903cac6ab125 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function index() | |
{ | |
$invoices = invoice::find(1); | |
return view('invoices.index', compact('invoices')); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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