whereIn('slug', ['money_transfer', 'cash'])->get(); } else { $systems = PaymentSystemModel::with('items')->whereIn('slug', ['payment_systems', 'cash'])->get(); } return [ 'data' => [ 'payment_types' => PaymentSystemResource::collection($systems) ] ]; } }