@extends('master')

@section('title')
    Transaction List
@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>List of transactions for {{ $client->name }}</h1>
			</div>

    <h2>AVSR queries</h2>
@if($avsrs!=NULL)
    <div class="row">
        <div class="large-12 columns">
            <table>
                <thead>
                    <tr>
                        <th width="2%">Transaction ID</th>
                        <th width="2%">Transactional Type</th>
                        <th width="2%">Date & Time Created</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach($avsrs as $avsr)
                        <tr>
                            <td>{{ $avsr->id }}</td>
                            <td>Bank Account Verification</td>
                            <td>{{ $avsr->created_at }}</td>
                        </tr>
                    @endforeach
                </tbody>
            </table>
        </div>
    </div>
@else
<p>No AVSR Queries made</p>
@endif

<h2>BCS queries</h2>
@if($bcss!=NULL)
    <div class="row">
            <div class="large-12 columns">
                <table>
                    <thead>
                        <tr>
                            <th width="2%">Transaction ID</th>
                            <th width="2%">Transaction Type</th>
                            <th width="2%">Date & Time Created</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach($bcss as $bcs)
                            <tr>
                                <td>{{ $bcs->id }}</td>
                                <td>{{ $bcs->transactionType }}</td>
                                <td>{{ $bcs->created_at }}</td>
                            </tr>
                        @endforeach
                    </tbody>
                </table>
            </div>
    </div>
@else
<p>No BCS Queries made</p>
@endif

<h2>OFS queries</h2>
@if($avsrs!=NULL)
    <div class="row">
            <div class="large-12 columns">
                <table>
                    <thead>
                        <tr>
                            <th width="2%">Transaction ID</th>
                            <th width="2%">Transactional Type</th>
                            <th width="2%">Date & Time Created</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach($avsrs as $avsr)
                            <tr>
                                <td>{{ $avsr->id }}</td>
                                <td>OFS - OnFile submission</td>
                                <td>{{ $avsr->created_at }}</td>
                            </tr>
                        @endforeach
                    </tbody>
                </table>
            </div>
    </div>
@else
<p>No OFS queries made</p>
@endif
</div>
@stop

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