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