@extends('master')

@section('title')
    Management Dashboard
@stop

@section('styles')

@stop

@section('content')

@include('partials.dashboard-menu')
<h1>Management Dashboard</h1>

<div class="row">
<p style="text-align:center;">To search by user name, company or product name then press enter</p>
    <form action="/dashboard-search" method="GET" style="margin-bottom: -1rem !important;">
        <input class="adminSearch" style="width:50%;font-family: 'Lato', sans-serif;margin-left: auto;margin-right: auto;display: block;border-radius: 13px;" placeholder="Search..." type="text" value="" name="search" id="search">
    </form>
</div>

<div class="comapanyTable">
    <table>
        <thead>
            <tr>
                <th width="10%">User Name</th>
                <th width="10%">Company</th>
                <th width="10%">Product</th>
                <th width="10%">Created At</th>
                <th width="10%">Status</th>
            </tr>
        </thead>
        <tbody>
            @foreach($transactions as $transaction)
                <tr>
                    <td>{{ $transaction->user }}</td>
                    <td>{{ $transaction->company }}</td>
                    <td>{{ $transaction->product }}</td>
                    <td>{{ $transaction->created_at }}</td>
                    <td>Complete</td>
                </tr>
            @endforeach
        </tbody>
    </table>
</div>






@include('partials.footer')

@stop