diff --git a/app/Http/Controllers/ClientPortal/InvoiceController.php b/app/Http/Controllers/ClientPortal/InvoiceController.php
index 99edab3c8d3a..b65bb2ac17be 100644
--- a/app/Http/Controllers/ClientPortal/InvoiceController.php
+++ b/app/Http/Controllers/ClientPortal/InvoiceController.php
@@ -18,6 +18,8 @@ use App\Models\Invoice;
use App\Repositories\BaseRepository;
use App\Utils\Traits\MakesHash;
use Illuminate\Http\Request;
+use Illuminate\Support\Facades\Log;
+use Yajra\DataTables\Facades\DataTables;
use Yajra\DataTables\Html\Builder;
/**
@@ -41,8 +43,13 @@ class InvoiceController extends Controller
{
if (request()->ajax()) {
-
- return DataTables::of(Invoice::all())
+ return DataTables::of(Invoice::all())->addColumn('action', function ($invoice) {
+ return ' Edit';
+ })
+ ->addColumn('checkbox', function ($invoice){
+ return '';
+ })
+ ->rawColumns(['checkbox', 'action'])
->make(true);
}
@@ -57,7 +64,7 @@ class InvoiceController extends Controller
// ['data' => 'created_at', 'name' => 'created_at', 'title' => trans('texts.date_created'), 'visible'=> true],
// ['data' => 'last_login', 'name' => 'last_login', 'title' => trans('texts.last_login'), 'visible'=> true],
// ['data' => 'balance', 'name' => 'balance', 'title' => trans('texts.balance'), 'visible'=> true],
- // ['data' => 'action', 'name' => 'action', 'title' => '', 'searchable' => false, 'orderable' => false],
+ ['data' => 'action', 'name' => 'action', 'title' => '', 'searchable' => false, 'orderable' => false],
]);
$builder->ajax([
diff --git a/resources/views/portal/default/footer.blade.php b/resources/views/portal/default/footer.blade.php
index ec2d3063d33d..8ce308e32d5d 100644
--- a/resources/views/portal/default/footer.blade.php
+++ b/resources/views/portal/default/footer.blade.php
@@ -10,6 +10,9 @@
+
+@stack('scripts')
+
diff --git a/resources/views/portal/default/invoices/index.blade.php b/resources/views/portal/default/invoices/index.blade.php
index 76b24aafe064..0b42f821a22d 100644
--- a/resources/views/portal/default/invoices/index.blade.php
+++ b/resources/views/portal/default/invoices/index.blade.php
@@ -27,10 +27,11 @@