@extends('layouts.app')

@section('content')


<!-- Content wrapper scroll start -->
<div class="content-wrapper-scroll">

<!-- Content wrapper start -->
<div class="content-wrapper">

    <!-- Row start -->
    <div class="row gutters">
        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
            <!-- Card start -->
            <div class="card">
                <div class="card-header">
                    <div class="card-title">All Items Purchased</div>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table id="copy-print-csv" class="table custom-table">
                            <thead>
                                <tr>
                                <th>Name</th>
                                <th>Position</th>
                                <th>Office</th>
                                <th>Age</th>
                                <th>Start date</th>
                                <th>Salary</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach($invoices_all as $display)
                                <tr>
                                <td>
                                    <ul>
                                    @foreach($display as $show)
                                            <li>{{$show->invoice_number}}</li>
                                    @endforeach
                                    </ul>
                                </td>
                                <td>
                                <?php
                                $total = 0;
                                foreach ($display as $show) {
                                    echo '<li>' . $show->invoice_total_price .'</li>';
                                }
                                    

                                ?>
                                </td>
                                <td>Edinburgh</td>
                                <td>61</td>
                                <td>2011/04/25</td>
                                <td>$320,800</td>
                                </tr>
                                @endforeach
                                
                            </tbody>
                    </table>
                    </div>
                </div>
            </div>
            <!-- Card end -->


           
        </div>
    </div>
    <!-- Row end -->

</div>
<!-- Content wrapper end -->

@endsection