srp admin controller update
This commit is contained in:
@@ -104,7 +104,9 @@ class SRPAdminController extends Controller
|
|||||||
'id' => 'required',
|
'id' => 'required',
|
||||||
'approved' => 'required',
|
'approved' => 'required',
|
||||||
'paid_value' => 'required',
|
'paid_value' => 'required',
|
||||||
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
//Get the paid value from the form
|
//Get the paid value from the form
|
||||||
$paidValue = str_replace(',', '', $request->paid_value);
|
$paidValue = str_replace(',', '', $request->paid_value);
|
||||||
//If the notes are not null update like this.
|
//If the notes are not null update like this.
|
||||||
|
|||||||
@@ -49,8 +49,7 @@
|
|||||||
{{ $row['fleet_type'] }}
|
{{ $row['fleet_type'] }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ number_format($row['actual_srp'], 2, ".", ",") }}
|
{{ Form::text('paid_value', number_format($row['actual_srp'], 2, ".", ","), ['class' => 'form-control']) }}
|
||||||
{{ Form::hidden('paid_value', $row['actual_srp'], ['class' => 'form-control']) }}
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ Form::textarea('notes', null, ['class' => 'form-control', 'id' => 'notes', 'rows' => 2, 'cols' => 15, 'style' => 'resize:none']) }}
|
{{ Form::textarea('notes', null, ['class' => 'form-control', 'id' => 'notes', 'rows' => 2, 'cols' => 15, 'style' => 'resize:none']) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user