new admin dashboard
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user