@extends('master')

@section('title')
    Manage Invoicing
@stop

@section('content')
    <div class="fullWidth darkGreyContainer">
        <div class="row">
            <div class="large-7 columns">
                <h1>Manage Invoices</h1>

            </div>
            <div class="large-2 columns">

            </div>

        </div>
    </div>
    <div class="row contactbg">
        <div class="large-8 columns">

        </div>
    </div>
    <div class="row contactbg">
        <div style="margin-left: 6rem;width: 90%;" class="large-12 columns">
            <table>
                <thead>
                    <tr>
                        <th width="18%"><i style="margin-left: 0px;" class="fa fa-user" aria-hidden="true"></i>Company Name</th>
                        <th style="text-align: center;" width="5%"></i>View Transactions</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach($users as $user)
                        <tr>
                            <td>{{ $user->name }}</td>
                            <td class="text-center"><a href="transaction-list/{{ $user->id }}"> <i class="lightGrey fa fa-pencil-square-o" aria-hidden="true"></i> </a></td>
                        </tr>
                    @endforeach
                </tbody>
            </table>
            <div class="row">
                <div class="large-12 columns">
                    <div class="pagination"> {{ $users->links() }} </div>
                </div>
            </div>
        </div>
    </div>
@stop

@section('scripts')
    <script src="{{ asset('js/scripts.js') }}"></script>
    <script>
        function Conform_Delete()
        {
           return confirm("Are You Sure Want to Delete this this user?");
        }
    </script>
@stop