modifed blade for unpaid invoices on admin dashboard
This commit is contained in:
@@ -57,10 +57,8 @@ class MiningTaxesAdminController extends Controller
|
|||||||
'status' => 'required',
|
'status' => 'required',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
dd($request->status);
|
|
||||||
|
|
||||||
Invoice::where([
|
Invoice::where([
|
||||||
'invoice_id' => $request->invoice_id,
|
'invoice_id' => $request->invoiceId,
|
||||||
])->update([
|
])->update([
|
||||||
'status' => $request->status,
|
'status' => $request->status,
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
{!! Form::open(['action' => 'MiningTaxes\MiningTaxesAdminController@UpdateInvoice', 'method' => 'POST']) !!}
|
{!! Form::open(['action' => 'MiningTaxes\MiningTaxesAdminController@UpdateInvoice', 'method' => 'POST']) !!}
|
||||||
{{ Form::hidden('invoiceId', $invoice->invoice_id) }}
|
{{ Form::hidden('invoiceId', $invoice->invoice_id) }}
|
||||||
{{ Form::label('status', 'Paid') }}
|
{{ Form::label('status', 'Paid') }}
|
||||||
{{ Form::radio('status', 'Paid', ['class' => 'form-control']) }}
|
{{ Form::radio('status', 'Paid', true, ['class' => 'form-control']) }}
|
||||||
{{ Form::label('status', 'Deferred') }}
|
{{ Form::label('status', 'Deferred') }}
|
||||||
{{ Form::radio('status', 'Deferred', ['class' => 'form-control']) }}
|
{{ Form::radio('status', 'Deferred', ['class' => 'form-control']) }}
|
||||||
{{ Form::label('status', 'Delete') }}
|
{{ Form::label('status', 'Delete') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user