new admin dashboard

This commit is contained in:
2020-04-03 02:21:25 -05:00
parent e8a077c0df
commit 4b56fb9025

View File

@@ -1,36 +1,43 @@
@extends('layouts.admin.b4')
@section('content')
<div class="container">
<table class="table table-striped">
<thead>
<th>Code</th>
<th>Description</th>
<th>Payout Percentage</th>
<th>Modify</th>
</thead>
<tbody>
@foreach($costcodes as $code)
<tr>
{!! Form::open(['action' => 'SRP\SRPAdminController@modifyCostCodes', 'method' => 'POST']) !!}
<td>
{{ $code['code'] }}
{{ Form::hidden('code', $code['code']) }}
</td>
<td>
{{ $code['description'] }}
{{ Form::text('description', null, ['class' => 'form-control', 'placeholder' => $code['description']]) }}
</td>
<td>
{{ $code['payout'] }}
{{ Form::text('payout', null, ['class' => 'form-control', 'placeholder' => $code['payout']]) }}
</td>
<td>
{{ Form::submit('Modify', ['class' => 'btn btn-primary']) }}
</td>
</tr>
{!! Form::close() !!}
@endforeach
</tbody>
</table>
<div class="card">
<div class="card-header">
<h2>SRP Cost Codes</h2>
</div>
<div class="card-body">
<table class="table table-striped table-bordered">
<thead>
<th>Code</th>
<th>Description</th>
<th>Payout Percentage</th>
<th>Modify</th>
</thead>
<tbody>
@foreach($costcodes as $code)
<tr>
{!! Form::open(['action' => 'SRP\SRPAdminController@modifyCostCodes', 'method' => 'POST']) !!}
<td>
{{ $code['code'] }}
{{ Form::hidden('code', $code['code']) }}
</td>
<td>
{{ $code['description'] }}
{{ Form::text('description', null, ['class' => 'form-control', 'placeholder' => $code['description']]) }}
</td>
<td>
{{ $code['payout'] }}
{{ Form::text('payout', null, ['class' => 'form-control', 'placeholder' => $code['payout']]) }}
</td>
<td>
{{ Form::submit('Modify', ['class' => 'btn btn-primary']) }}
</td>
</tr>
{!! Form::close() !!}
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection