modifed blade for unpaid invoices on admin dashboard
This commit is contained in:
@@ -66,23 +66,6 @@ class MiningTaxesAdminController extends Controller
|
||||
return redirect('/admin/dashboard/miningtaxes')->with('success', 'Invoice successfully updated.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete an invoice and mark items paid
|
||||
*/
|
||||
public function DeleteInvoice(Request $request) {
|
||||
$this->validate($request, [
|
||||
'invoice_id' => 'required',
|
||||
]);
|
||||
|
||||
Invoice::where([
|
||||
'invoice_id' => $request->invoice_id,
|
||||
])->update([
|
||||
'status' => 'Deleted',
|
||||
]);
|
||||
|
||||
return redirect('/admin/dashboard/miningtaxes')->with('error', 'Invoice successfully deleted.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Display past paid invoices
|
||||
*/
|
||||
|
||||
@@ -31,6 +31,10 @@
|
||||
{{ Form::hidden('invoiceId', $invoice->invoice_id, ['class' => 'form-control']) }}
|
||||
{{ Form::label('status', 'Paid') }}
|
||||
{{ Form::radio('status', 'Paid', ['class' => 'form-control']) }}
|
||||
{{ Form::label('status', 'Deferred') }}
|
||||
{{ Form::radio('status', 'Deferred', ['class' => 'form-control']) }}
|
||||
{{ Form::label('status', 'Deleted') }}
|
||||
{{ Form::radio('status', 'Deleted', ['class' => 'form-control']) }}
|
||||
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user