changes in email template for enquiries and form submittion, other all minor error fixed.

This commit is contained in:
2025-08-28 13:11:34 +05:45
parent 086395a0a4
commit 3666b749ea
15 changed files with 3907 additions and 1486 deletions

View File

@@ -18,10 +18,14 @@ class EnquiryController extends Controller
public function index()
{
$is_enrolled = request()->get('is_enrolled', null);
if (request()->ajax()) {
$model = Enquiry::query()->latest();
return DataTables::eloquent($model)
->addIndexColumn()
->addColumn('checkbox', function (Enquiry $enquiry) {
return '<input type="checkbox" class="enquiry-select" value="' . $enquiry->id . '" data-name="' . $enquiry->name . '">';
})
->setRowClass(function (Enquiry $enquiry) {
return $enquiry->is_read ? 'text-muted' : 'text-dark';
})
@@ -35,7 +39,7 @@ class EnquiryController extends Controller
return $enquiry->message ?? '-';
})
->addColumn('action', 'ccms::enquiry.datatable.action')
->rawColumns(['action'])
->rawColumns(['checkbox', 'action'])
->toJson();
}
return view('ccms::enquiry.index', [