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

@@ -20,8 +20,11 @@ class CounselorController extends Controller
$model = Counselor::query()->latest();
return DataTables::eloquent($model)
->addIndexColumn()
->addColumn('checkbox', function (Counselor $enquiry) {
return '<input type="checkbox" class="enquiry-select" value="' . $enquiry->id . '" data-name="' . $enquiry->name . '">';
})
->addColumn('action', 'ccms::counselor.datatable.action')
->rawColumns(['action'])
->rawColumns(['checkbox', 'action'])
->toJson();
}
return view('ccms::counselor.index', [

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', [

View File

@@ -22,8 +22,11 @@ class FranchiseController extends Controller
$model = Franchise::query()->latest();
return DataTables::eloquent($model)
->addIndexColumn()
->addColumn('checkbox', function (Franchise $enquiry) {
return '<input type="checkbox" class="enquiry-select" value="' . $enquiry->id . '" data-name="' . $enquiry->name . '">';
})
->addColumn('action', 'ccms::franchise.datatable.action')
->rawColumns(['action'])
->rawColumns(['checkbox', 'action'])
->toJson();
}
return view('ccms::franchise.index', [
@@ -112,5 +115,4 @@ class FranchiseController extends Controller
return redirect()->back()->with('error', $th->getMessage());
}
}
}

View File

@@ -22,8 +22,11 @@ class NewsletterController extends Controller
$model = Newsletter::query()->latest();
return DataTables::eloquent($model)
->addIndexColumn()
->addColumn('checkbox', function (Newsletter $enquiry) {
return '<input type="checkbox" class="enquiry-select" value="' . $enquiry->id . '" data-name="' . $enquiry->name . '">';
})
->addColumn('action', 'ccms::newsletter.datatable.action')
->rawColumns(['action'])
->rawColumns(['checkbox', 'action'])
->toJson();
}
return view('ccms::newsletter.index', [
@@ -111,5 +114,4 @@ class NewsletterController extends Controller
return redirect()->back()->with('error', $th->getMessage());
}
}
}

View File

@@ -22,18 +22,16 @@ class VacancyController extends Controller
$model = Vacancy::query()->latest();
return DataTables::eloquent($model)
->addIndexColumn()
->addColumn('checkbox', function (Vacancy $enquiry) {
return '<input type="checkbox" class="enquiry-select" value="' . $enquiry->id . '" data-name="' . $enquiry->name . '">';
})
->addColumn('action', 'ccms::vacancy.datatable.action')
->rawColumns(['action'])
->rawColumns(['checkbox', 'action'])
->toJson();
}
return view('ccms::vacancy.index', [
'title' => 'Vacancy List',
]);
}
/**