public function index(DateRangeSearch $request): View 	{ 		$user = $request->user(); 		$isPaid = $request->filled('is_paid') ? $request->boolean('is_paid') : null; 		$domain = $user->user->activeDomain; 		$payment_type = $request->enum('payment_type', PaymentType::class);  		$start_date = $request->start_date ?? formatTimestamp(now($user->timezone)->startOfMonth(), 'Y-m-d H:i'); 		$end_date = $request->end_date ?? formatTimestamp(now($user->timezone)->endOfMonth(), 'Y-m-d H:i');  		$orders = Order::whereBetween('created_at', [$start_date, $end_date]) 			->when($isPaid, static function (Builder $query): void { 				$query->paid(); 			}) 			->when($isPaid === false, static function (Builder $query): void { 				$query->unpaid(); 			}) 			->when($payment_type?->value === PaymentType::Corvus->value, static fn (Builder $query) => $query->where('payment_type', PaymentType::Corvus->value)) 			->when($payment_type?->value === PaymentType::Cash->value, static fn (Builder $query) => $query->where('payment_type', PaymentType::Cash->value)) 			->where('domain_id', $domain->id) 			->latest() 			->get();  		return view('orders.list', ['orders' => $orders, 'start_date' => $start_date, 'end_date' => $end_date, 'isPaid' => $isPaid, 'payment_type' => $payment_type]); 	}