This commit is contained in:
nurmuhammet committed 2024-11-23 13:19:03 +05:00
1 parent e49dbfe450
commit df0856adbe
1 file changed
+1 -1
@@ -53,7 +53,7 @@ public function handle(ActionFields $fields, Collection $models)
$resource = $models->first();
$hasBeenPaid = false;
$resource->items->each(function ($item) use ($hasBeenPaid) {
$resource->paymentItems->each(function ($item) use ($hasBeenPaid) {
if (boolval($item->paid) && now()->format('m Y') == $item->created_at->format('m Y')) {
$hasBeenPaid = true;
}