This commit is contained in:
SUM2046
2026-07-03 12:37:30 +05:30
parent f2ad6093d2
commit 7fba009978
3 changed files with 272 additions and 244 deletions

View File

@@ -5,6 +5,7 @@ namespace Modules\DailySalePaymentReportModule\Http\Controllers;
use Illuminate\Contracts\Support\Renderable;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Modules\DailySalePaymentReportModule\Entities\PaymentOption;
class DailySalePaymentReportModuleController extends Controller
{
@@ -14,7 +15,13 @@ class DailySalePaymentReportModuleController extends Controller
*/
public function index()
{
return view('dailysalepaymentreportmodule::index');
$paymentOptions = PaymentOption::where('is_active', 1)
->orderBy('id')
->get(['id', 'name']);
return view('dailysalepaymentreportmodule::index', [
'paymentOptions' => $paymentOptions,
]);
}
/**