@extends('master')

@section('title')
    Client Usage
@stop

@section('content')
<img style="max-width: 30%;display: block; margin-top: -3rem; margin-left: auto; margin-right: auto;" src="/img/Prestige_Logo.jpg" />
<div style="width: 860px !important;border: solid #009ddc 7px;background-image: url(/img/da-background.jpg);" class="login">
			<div class="app-title">
				<h1>Client Usage</h1>
			</div>
    <a  href="/management-dashboard"><button style="margin-left:auto;margin-right:auto; display:block;padding-left:1rem;padding-bottom:0.063rem;"><i style="font-size: 1rem;" class="fa fa-arrow-circle-left" aria-hidden="true"></i>Back</button></a>
    
    <div class="row">
        <div class="large-12 columns">
            <table>
                <thead>
                    <tr>
                        <th width="18%"><i style="margin-left: 0px; font-size: 2rem;" 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="transation-list/{{ $user->id }}"> <i style="font-size: 2rem;" class="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>
    </div>
@stop

@section('scripts')
    <script src="{{ asset('js/scripts.js') }}"></script>
@stop